|
#1
|
|||
|
|||
|
I am making a Mario game for the Zen. I have made arrow buttons, and drawn them to the screen, but how can I code the LEFT, RIGHT and JUMP, (moving a sprite)
Thanks.
Last edited by jameswalker101; 06-20-2011 at 02:12 PM. Reason: Update |
|
|
|||
|
|
|
#2
|
||||
|
||||
|
You just need to keep track of your player's coordinates, and always draw the sprite based on the players current position, and in your LEFT, RIGHT and JUMP functions you modify its coordinates on the screen by adding or subtracting.
That's the quick answer, the long one is for you to check my code for Neko Apprentice, it has arrow buttons which initiates movement.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 04:41 AM.











Linear Mode
