Game Maker

Set the gravity

205pages on
this wiki
Game maker logo
This article may need to be wikified in order to meet the Game Maker's quality standards. Grammar and spelling should be improved and the article should contain relevant information before this is removed. This also includes upgrading the Set the gravity page. (Adding new information and text)
Please edit this page to improve it.
Game maker logo

To set the gravity of an object, you can use the "set gravity" action from the "move" tab, or in a create event you can write :

gravity = ?*;

?* = number you wish to set it to.

Gravity is quite sensitive so its best to use lower numbers.

you need to set the gravity direction too...

You will use °


                               270°     <+>          90°



so you can put this


(At step event) if place_free(0,self+1) then gravity=?* else gravity=0(if you want)

Around Wikia's network

Random Wiki