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

#1 2010-06-19 20:51:12

YellowstoneWolf
Scratcher
Registered: 2010-06-19
Posts: 8

velocity script plz

could anyone give me a velocity script plz?

Offline

 

#2 2010-06-19 21:03:40

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: velocity script plz

Assuming you're working in two dimensions, here it is:

Make two variables: one for the X velocity, and one for the Y velocity. Call them Xvelocity and Yvelocity, or some sort of deviant thereof.

Then use this script, assuming you can control them in any direction with the arrow keys. You can change how responsive the keys are by changing the amount the variables change by when you press the arrow keys:

http://i46.tinypic.com/1zgah4p.gif

Hope that helped!

Offline

 

#3 2010-06-20 05:21:59

YellowstoneWolf
Scratcher
Registered: 2010-06-19
Posts: 8

Re: velocity script plz

It did!

Offline

 

#4 2010-06-20 13:19:36

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: velocity script plz

YellowstoneWolf wrote:

It did!

Glad to here it! Happy to help!  smile

Offline

 

Board footer