gravity_direction (Game Maker)


(Game Maker 6.1, 7)

gravity_direction - direction of gravity


gravity_direction is a local variable that contains the direction of gravity. If gravity is set to , gravity_direction retains its value but does not aid in moving an instance.

The value of gravity_direction can be any number between and 359 and represent the same directions as used for gravity direction

Direction Reference

  • 0 is right
  • 45 is up/right
  • 90 is up
  • 135 is up/left
  • 180 is left
  • 225 is down/left
  • 270 is down
  • 315 is down/right

Related Pages



Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.