[SOLVED]Touch position with multitouch? (Move mouse cursor when touching screen NO)

So i have these events to tint player to red if cursor or touch is left from CameraX (center of screen)
And to green if it is right from it
Now it works perfectly fine on mobile if i have Move mouse cursor when touching screen disabled (or by default set to yes)


https://games.gdevelop-app.com/game-749b6c8f-1976-478c-96ee-7e22cf66487f/index.html
Try on mobile and it works just fine

Now if i enable last event
So mouse is not moving anymore with touches


https://games.gdevelop-app.com/game-3f774575-0f9d-452e-ad00-65ff263b97b2/index.html
It automatically tint player to red (left from center of screen)
Even so i did not made any touch

But clicking anywhere on right or left do not tint player to green

How do i get it to work?
Do i need some additional condition?

New touch has started:
Repeat for (amount of touches in this frame)
Then use a variable in an expression to loop and get the identifier of every touch, and check their X position.

1 Like

Well that was easy
Thx it works perfectly

There is also a link to an example in this documentation if someone wants to copy-paste the events.
https://wiki.gdevelop.io/gdevelop5/all-features/mouse-touch/