This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-04-06 18:30:28

vamprocklover12
Scratcher
Registered: 2010-04-06
Posts: 1

Need Help With Making Sprites Move

I'm using Scratch to do an assignment for my Computer Science class. We have to create a program where button sprites and keys control the direction and change the speed, respectively. I know how to get those things working, but I cannot figure out how to make the sprite move constantly even after clicking the button sprites. Can someone please give me some ideas? I'd really appreciate it  sad

Offline

 

#2 2010-04-06 19:04:23

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Need Help With Making Sprites Move

This should be in All About Scratch.

Anyway, you said you have the speed variables working? What you need to do now is go to the sprite you want to move and add this script:
<when green flag clicked>
<forever>
<change y by( <{ set this to the x speed variable }> )>
<change x by( <{ set this to the y speed variable }> )>
<end>


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

Board footer