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
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
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.
Offline