0 votes

I'm making a mobile game, and when I try to use event.position on a touch event, it doesn't return the correct position?

I made a draw_line() function for debug purposes that draws a line from the joystick to the touch position, but it is showing the wrong position.

Any ideas why this could be happening?

Godot version 3.3.3.stable.mono
in Engine by (177 points)

1 Answer

0 votes

SOLVED

I solved this by using the makeinputlocal() function on the touch event

by (177 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.