Hi bro, yes your question make sense. This is why:
The problem is that the spaceship is moving according to where my finger is. SO I never set really a right or left command.
Thanks for your answer. I'll try that.
Edit: could you please provide an example of this?
"Every tick you should check the position in the X-axis of the spaceship in the previous tick (which you saved inside a variable). If newPosX > oldPosX then the ship is moving to the right, if newPosX < oldPosX then the ship is moving to the left, if newPosX = oldPosX then the ship is stationary."
I'm not sure how to check the spaceship position and compare it with the previous one.