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

#1 2010-05-21 19:47:04

codeyman6
Scratcher
Registered: 2010-03-27
Posts: 6

velocity

How do you use the velocity variable????????????????????????????????????!!!!!!!!!!!!!!!!!!!?!?!??!?!?!?!?!??!?!?!?!?!?!?!?!?!?!?!??!!?!??!!??!?

Offline

 

#2 2010-05-21 19:49:55

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

Re: velocity

Maybe the example project "Marble Racer" can help you. It's in the Examples folder, under Games. You can also find it online here.

In short, pressing a key changes the variable by a little bit. Then you change the coordinate you want to change by the variable.

Hope that helped!

Last edited by coolstuff (2010-05-21 19:50:56)

Offline

 

#3 2010-05-21 19:57:59

wildplayer
Scratcher
Registered: 2008-08-01
Posts: 100+

Re: velocity

There is many other variables that go along with it to affect it gravity (the push down), friction (the way it slows down) and force (how hard it hits something creating a counter reaction). I have a game called gravity ball it could give you accurate gravity and velocity variables.

Offline

 

#4 2010-05-21 19:59:53

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

Re: velocity

wildplayer wrote:

There is many other variables that go along with it to affect it gravity (the push down), friction (the way it slows down) and force (how hard it hits something creating a counter reaction). I have a game called gravity ball it could give you accurate gravity and velocity variables.

Indeed, I also have a game called Runner (here is the sequel, which is better) which addresses friction.

Offline

 

Board footer