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

#1 2012-03-19 18:05:37

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

X and y velocity

What does y velocity even do? I know it's in scrolling and some other stuff, but I don't really know what I does.
Sorry if his belongs in help with scripts. Wasn't sure, but since.im only asking what a block does I think it goes here.

Last edited by turkey3 (2012-03-19 19:25:24)

Offline

 

#2 2012-03-19 19:06:04

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: X and y velocity

turkey3 wrote:

What does cans y velocity even do? I know it's in scrolling and some other stuff, but I don't really know what I does.
Sorry if his belongs in help with scripts. Wasn't sure, but since.im only asking what a block does I think it goes here.

Y velocity is gravity
Scroll Y is up and down scrolling.
There are already many topics about gravity in help in scripts if you want to know how to do it.

Offline

 

#3 2012-03-19 19:27:03

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: X and y velocity

Y velocity is how fast your sprite is moving vertically (up and down). if you are jumping, y velocity is a positive number. If you are falling, it is a negative number. This is usually used for gravity and jumping. X velocity is how fast you are moving horizontally (left and right). Sometimes people include friction along with X velocity. If you are moving right, x velocity is a positive number. If left, it is a negative number. That's pretty much all i know. I never use x velocity, personally.


La La
I wrote an album.

Offline

 

Board footer