Hello I have problem In my game, the player always shoots where you press your finger (mobile game), in principle it works but because I have a joystick to navigate, the player the game is confused and always shoots down in the bottom left corner (because their is the joystick your holding)
Please can anyone help me with this and solve this problem?
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
You'll need to send a picture of the events or share the file, nobody can really do anything if we can't see what it wrong.
You'll want to ensure to only use that event if the touch.x and touch.y are not near the joystick portion of the screen!
distance ( touch.x , touch.y , joystick.x , joystick.y ) will derive the distance