Wikia

Game Maker

Gravity

Talk0
194pages on
this wiki

Sets the gravity. When setting this your object will move (for example) up and if its not moving up anymore it will slow down and fall down.

Example;

gravity = 0.2;
if (keyboard_check_direct(vk_up)) vspeed += 0.4;

Advertisement | Your ad here

Around Wikia's network

Random Wiki