I'm currently working on a side-scrolling jumping game. The object of the game is to press the correct key to jump a plat form. 1 would jump to the closest, 2 would jump to the farthest (and of course, more keys and more platforms).
The game starts with the cat on the far left side of the screen and only one platform will appear on the right side.
The user has to press the correct key to land on the platform.
I figured this out so far.
How do I scroll the screen so the cat and the platform it landed on is on the left side of the screen again?
I tried having it so when it collides with the platform, the object and the sprite will move to the X coordinate but it just jumps there. I want a smooth, following motion AFTER the cat safely lands on the platform.
Thanks in advance!