Help I can't figure out how to make a sprite move smoothly! will somebody please tell me how
Offline
I'm assuming that you're using [change x by (10)], right? Well then, you could use:
repeat (10) change x by (1) Filler//If you want the movement slower, you can add a wait block here. endI hope that this helps!
Offline
Here is the script I generally use for a moving script:
forever if <key [up arrow v] pressed?> //change to movement direction change y by (5) //changing this amount will change movement speed switch to costume [Up v] //costume for going up end endIn the end, my script looks something like this:
forever if <key [up arrow v] pressed?> change y by (5) switch to costume [Up v] end if <key [down arrow v] pressed?> change y by (-5) switch to costume [Down v] end if <key [left arrow v] pressed?> change x by (-5) switch to costume [Left v] end if <key [left arrow v] pressed?> change x by (5) switch to costume [Right v] end endI set the movement values to 5 so they are not too fast and not too slow. You can change them to whatever you want. They will all work. The speed will just change.
Last edited by SOScratch (2012-10-23 23:06:28)
Offline
how to make this script work the way i want to. keep looping vertically (up motion from bottom of stage). or after it touches a sprite at the top of the stage or edge of stage then loop in a split of a second. also send a score to a score box
when flag click
forever
move 4 step
Offline