Hi,
I am a newbie here. Today I created one small layout that works like, when clicked on left side screen, the sprite will move left side. When tapped on right side, the sprite will move right side.
I have put demo here You can see event sheet here I have setup the code , "in touch" the sprite moves left side and right side. And at the same time, I have added sub event , that checks, whether the sprite crosses screen border. If it crosses, then the movement will not happen.
My question is how to stop the sprite exactly at 0 on left side and 480px on right side.
(For some reason, it does not work perfect on mobile devices)