Hello, I am new so bear with me, also if this is in the wrong section, please move it to the correct one.
So me and a friend are currently starting to develop a 2d game that involves the following
-the background scrolls to the left and a player animation remains stationary in the middle of the screen making it look like he is moving to the right.
-the user does not control the horizontal movement of the character at all, the background needs to auto scroll so that the player is constantly running to the right.
- the user input is a button that makes the player jump. upon this press the player needs to remain in the same place but the screen will scroll down to make it seem as though the player is going up.
right now we are using TranslateAnimation b ut we are not sure if this is the best way as it is hard to get it to scroll at a constant speed to the left always, then make it go up, while still going left so to maintain inertia.
what do you think?
there has to be a better way, or something, is there anyway someone colud walk me through th basics/logic/methos/classes needed?
if you need more info let me know.
sorry for the long post
thanks in advance!