Creating object at touch position

I would like to create an object at the position of a touch. I would assume this would work but it just creates it in the top left corner.

LastTouchID() is the ID of the last touch, not its coordinates.
To get coordinates use functions MouseX(), MouseY().

Is there a way to get just the touch position? I have cursor and touch separate.

Docs: Mouse and handling touch events [GDevelop wiki]

1 Like

MouseX() is fine for a single touch. But if you are using multiple touches, you can use something like :


1 Like