how do you make a sprite thats moving constantly move slower? please help
Offline
many ways on that work well is to make a veriable speed have it change to your needs and make this script for the sprite
(start)
(forever)
(move(1*(speed)steps
Offline
that will work but than you cant exactly control speed of the sprite
Offline
and will come to a stop eventually you must think about what happens next
Offline
slayerrobe7 wrote:
and will come to a stop eventually you must think about what happens next
It will start moving backwards. ^^
Offline
What would be better is:
[blocks]<when green flag clicked>
<set{ speed }to( 10
<forever>
<move( <{ speed }> )steps>
<if on edge, bounce>
<change{ speed }by( (( 0 <-> (( <{ speed }> </> 100 )) ))
<if><( .1 <>> <{speed}> )>
<set{ speed }to( .1
<end>
<end>
[/blocks]
Sorry if it's a little messy-the scratch blocks bbcode just is that way.
Basically, the sprite will go slower and slower, but never stop or go backwards.
And if it hits a wall, it bounces.
Last edited by kayybee (2011-08-11 17:21:20)
Offline
also you can tweek that script so it will exelerate
Offline