Discuss Scratch

SiddKidd
Scratcher
100 posts

What exactly is a velocity variable and what do they do?

What exactly is a velocity variable and what do they do?
footsocktoe
Scratcher
1000+ posts

What exactly is a velocity variable and what do they do?

Find a game with a velocity variable in it.
SiddKidd
Scratcher
100 posts

What exactly is a velocity variable and what do they do?

footsocktoe wrote:

Find a game with a velocity variable in it.

I've seen many games, but I don't understand it cause I'm a dumb 13 year old.
footsocktoe
Scratcher
1000+ posts

What exactly is a velocity variable and what do they do?

SiddKidd wrote:

footsocktoe wrote:

Find a game with a velocity variable in it.

I've seen many games, but I don't understand it cause I'm a dumb 13 year old.

You're smart enough, but we need a game we can both look at. Anybody can make a variable and call it “velocity” or “speed” or whatever. That doesn't mean they are all using it the same way.

Find us a game with a velocity variable in it and I will tell you how they used it.
ajzat25
Scratcher
14 posts

What exactly is a velocity variable and what do they do?

they can be used to make gravity and jumping scripts:

when green flag clicked
set [v] to [0]
forever

if <touching [ ground] ?> then

set [v] to [ 0]
if <key [space] pressed?> then

set [v] to [15]
end
end
change [v] by (-1)
change y by (v)

end
or friction, and acceleration there all somewhat similar and you can look up projects on how to do that if you want.
SiddKidd
Scratcher
100 posts

What exactly is a velocity variable and what do they do?

footsocktoe wrote:

SiddKidd wrote:

footsocktoe wrote:

Find a game with a velocity variable in it.

I've seen many games, but I don't understand it cause I'm a dumb 13 year old.

You're smart enough, but we need a game we can both look at. Anybody can make a variable and call it “velocity” or “speed” or whatever. That doesn't mean they are all using it the same way.

Find us a game with a velocity variable in it and I will tell you how they used it.

Thanks! But for right now, I don't need to know, as I'm sleeping. ttyl!
ajzat25
Scratcher
14 posts

What exactly is a velocity variable and what do they do?

there are also plenty of projects that explain how velocity works.

https://scratch.mit.edu/projects/30980702/#editor, go through the tutorial and then read the notes in the sprite “script is here”
VicTwenty
Scratcher
83 posts

What exactly is a velocity variable and what do they do?

Maybe knowing this will help you relate. The velociraptor dinosaur is named this because it is so quick, velocity = speed
Mymovie88
Scratcher
3 posts

What exactly is a velocity variable and what do they do?

VicTwenty wrote:

Maybe knowing this will help you relate. The velociraptor dinosaur is named this because it is so quick, velocity = speed
not exactly.
<[(velocity)] = (((speed)) / ((timer)))>

Last edited by Mymovie88 (March 22, 2022 17:36:36)

Powered by DjangoBB