how can i like make it so the sprite doesnt go through walls or the ground but if he jumps he can go up.
Also, how do u make him jump
thx.
Offline
for your second question, just do
<when[ What ever Key You Want ]key pressed>
<point in direction( 0
<move(10 )steps>
<switch to costume[ jump
<wait( 0.1 )secsc>
and keep repeating untill your as high as you want, then you do:
<move( -10 )steps>
<switch to costume[ falling
<wait( 0.1 )secsc>
hope it helped!
Offline
[blocks]<when green flag clicked>
<forever>
<if><key[ Up ]pressed?>
<set{ Jump velocity }to( lets say 10? )>
<repeat( 10 )>
<change{ Jump velocity }by( -1)>
<end>
<end>
<end>
<when green flag clicked>
<forever>
<change y by( <{ Jump velocity }>
<change y by( <{ Gravity }> )
Then you need gravity
<when green flag clicked>
<forever>
<change{ Gravity }by( -0.1 )>
<wait until><touching color[ What ever you want the floor's color to be ]>
<end> [/blocks]
Hope that helps. If it doesint, sorry.
Offline
no it doesnt work
Offline
what doesint work? post it up and ill see what i can do
Offline