Hi all. I'm making a simple game similar to the one that came with Scratch when I downloaded it called "Doodle" where you draw the paths your character takes. I love the idea, but I have come across a problem. It may sound simple (and it probably is) but I can't figure out how to get my character to jump I am thinking I may need to use X and Y variables but I keep confusing myself... anyone have any ideas? Much Appreciated
Offline
Hope this helps.. feel free to change it
<when[ space ]key pressed>
<repeat( 5 ) >
<change y by( 2 ) >
<end>
<repeat until><touching[ ground ] >
<change y by( -2 ) >
<end>
Last edited by techy (2009-01-02 23:52:58)
Offline
I like it, thanks
Offline
The way techy described was probably the simplest way. You can also make it jump more smoothly if you want. Try looking at some of archmage's projects, the jumping is really smooth.
But if you're a new user, just use the simple way.
Offline