So in games like this one i can press a screen in any place but the ship shouldn’t move. It moves relatively after i started to move my finger/mouse while pressed. So a ship may be in the left bottom corner while my mouse may be in the top center of the screen - i move my mouse to the right and the ship moves to the right while coordinates of the ship and the mouse may be different.
Hi, I am not sure if I understood your description. If you mean you just want to move the spaceship on the x-axis within the limits of the screen, there is the “Geometry monster”-tutorial that leads you through the process of implementing exactly this kind of controls: