Movement of one touch game with the influence of gravity

I am building a one touch 2d game in which the player need to fly a plane through different obstacles. when the player is touching the screen, the plane should accelerate upwards which increase its speed gradually and when the player is leaving his finger from touching the screen, plane should accelerate upwards due to upward inertia and it needs to move downwards with the influence of gravity. when the player touches the screen again, the plane should move downwards a bit due to the downward inertia. Kindly help me to find a solution.


Sign In or Register to comment.