go ahead and use blocks to write script
Offline
Here's the jump script. (Sorry for taking so long; I was traveling without a computer) (I don't even own a portable one )
[blocks]
<when green flag clicked>
<forever>
<if><touching[ floor]
<set{ v}to( 0
<if><key[space]pressed?>
<set{ v}to( 15
<end>
<else>
<change{ v}by(-1
<change y by( v
<end>
[/blocks]
Note that V is the y velocity, and that you can change the jump amount by changing what V gets set to in the "key space pressed". This also adds gravity. Put it into your character sprite. Hope this helps! (And hope I'm not too late)
Offline
That script looks flawed. The change y by V should be outside of the else block.
Also, it doesn't seem like your gave your forever block an end piece.
Offline
no rush bubble o7, and archmage, does the forever loop need one?
Last edited by Freestylin_Monkey (2008-06-02 10:45:31)
Offline