I wonder if it is posible to do the virtual gamepad smaller, It takes up too much space on the screen.
I donât even know how to draw the virtual joystick on the screen
Could you teach me?
Here you have an example
Properties > scene > Armory Traits > Add - Bundled, select class âvirtual gamepadâ.
Now you can use logic nodes concerning gamepad
Thanks a lot
I wonder why âedit scriptâ doesnât work. Shouldnât it be one possible way to make gamepad smaller?
Did you check if the file was correctly copied to the Sources/arm folder in your project? (Thatâs what that button does), sometimes it fails to copy it because it doesnât detect that the folder structure is not correct:
â Sources/
*- Main.hx
*- arm/
I did a quick fix in a pull request in the original file that might help the problem.
You can click on Edit Script and copy and paste the code from the link and replace the one that appears in the editor and then after saving click âRefreshâ in the editor inside Blender.
That should show two variables radius and offset, you can play with those to get better results. Or you can edit those values directly in the code editor also.
Something I was thinking that is missing is profiles so at certain resolutions the values are different, or maybe a flag to allow making the values proportional to resolution, so they always fit the same way in different resolutions. I might look at it later when I have some extra time.
Do you have kode studio installed? Kode studio is ide and clicking Edit script
should open kode studio.