When you play the game in web it doesn’t have a problem. The joystick works as it intended. You can check it here.
After that i downloaded the APK version of the game to my phone to test it and i realized that the joystick is stucked on the top left corner(on the web version even if i play it on mobile it doesn’t have a problem) and it doesn’t gets spawned to coordinates of my touch which according to the events i assigned it has to do it.
A number should never be set directly for the touch identifier parameter. The one given by StartedTouchId must be used. That said, you probably don’t need to handle multitouch, using mouse conditions will work directly.
This documentation explains how to do it: https://wiki.gdevelop.io/gdevelop5/all-features/mouse-touch/
Thank you. I replaced the touch identifier with the StartedTouchOrMouseId() but it still requires me to set a parameter. So i’m confused about this.
EDIT: When i assign the parameter as 0, nothing happens. But when i assign it as 1 or higher, the joystick gets stuck at the (0,0) position as i told even in the desktop version.
I was skeptical, but I did what you suggested and used the example as a model for what op needed to do (I think). I was shocked to see it worked. Thanks a lot, even though it wasn’t my question. This knowledge will be useful to me and now I won’t have such bitter feelings about the multitouch expressions.