I copied this simple joystick modulein my project. The joystick already responds to the touch and it works, but I’m not sure how to exactly link it to my object and make it move accordingly.
Any help would be appreciated.
I copied this simple joystick modulein my project. The joystick already responds to the touch and it works, but I’m not sure how to exactly link it to my object and make it move accordingly.
Any help would be appreciated.
Figured it out.
How did you do it?
After you create the joystick in your game scene, use the “getDirection()” function and based on the returned direction, move your object accordingly.
Figured it out.
How did you do it?
After you create the joystick in your game scene, use the “getDirection()” function and based on the returned direction, move your object accordingly.