How to make gravity and jumping [blocks]<when green flag clicked>
<forever>
<change y by( <{ yvel }>
<if><< <not><touching color[ color of ground >>
<change{ yvel }by( -1
<else>
<set{ yvel }to( 0
<if><key[ up arrow ]pressed?>
<<change{ yvel }by( 13
<end>
<end>
<end> [/blocks] This script will only do jumping, not hitting anything but the ground or side to side movement. Full movement demo
Last edited by brgbdg9nanana (2008-06-30 10:51:09)
Offline