Pages: 1
Topic closed
HOW WOULD YOU MAKE A SPRITE JUMP, not like a jetpack? I am working on a game that needs this information because there will be a sprite that will jump and eat a certain food that will dissapear when it touches it. (I DO know how to make it dissapear when the sprite touches it.) Anyone have ideas? Now= If helped,
Echo, echo, echo!
Offline
Lots of ways
A simple one might be
Forever
- If Up arrow pressed
- repeat 5
- change y by 1
- repeat 5
- change y by -1
- wait 0.05
Or look at archmages demo
http://scratch.mit.edu/projects/archmage/14600
Last edited by Mayhem (2007-06-22 14:19:17)
Offline
Thanks! I'm trying it out right now.
Offline
There are between 40 and 50 projects tagged with the tag "gravity".
Go to any of them and look at how they implemented it.
You have been asking a lot of good questions Kaydoodle13, but you could answer a lot of them yourself by looking at other people's code. That is why this sharing site was set up---so that people could find examples of code for things they want to do and see how it works.
Almost all your questions for help recently sounded like you were trying to do something like jet-pack girl. If so, then your best bet is to look at the code for that project and see how it was done. If, when you try doing something similar, it doesn't work, then you can come to the forum and ask for help---showing the code you wrote and asking why it doesn't behave as you want, rather than just asking over and over for snippets of code.
Offline
Topic closed
Pages: 1