DemonWasp @ Thu Dec 10, 2009 2:24 am wrote:
Moving the background picture just means you re-draw it in a new location every "frame", generally with it moving in a direction opposite the character relative to the screen.
Super Mario may prove deceptively challenging. You have at least 4 different kinds of platform (basic, powerups, coins, falling/moving) and they can be invisible. You have at least 2 different models for the main character. You have (simple) AIs or scripts for enemies in the game. You have a lot of collision-checking to do. You have win / lose messages. You have level design and implementation (hint: it's easier to make levels if you designate a good file format to read from).
To track time, use Time.ElapsedMS or similar. See the Turing help.
Thanks, that pretty much answers all my questions except I'm still confused about the background moving part. Won't I have to have a different background for each frame of background I draw, because the background is supposed to be different? And when the character moves backwards, I have to draw the one previously drawn, so how will I distinguish what to draw, and how what type of code do I even use to draw a background every frame (or will it be relative to character movement?) I understand the direct opposite concept to the character concept though, 