FANDOM


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;