Game Maker Studio Command Sheet
Game Maker Studio Command Sheet
3 Cheat Sheet
(Date: August 6, 2014; cf. http://docs.yoyogames.com/)
- Events
o create event (executed once upon creation)
o collision events (executed upon collision)
o step events (executed once per frame)
o drawing events (executed after step events)
o alarm events (executed for a given duration)
o mouse events (executed by clicking on an object)
- Conditions
o if () {} (checked once)
o while () {} (checked until condition not met)
o switch () {} (differentiate between options)
o for () {} (repeat within a given range)
! simplified version: repeat () {}
! Data types
o numbers, strings, arrays, special data types (ds_)
o local or global
o random(), randomize(), max/min/clamp
! Levels (room_)
! Sprites (image_) ! Objects (object_) ! instances (instance_)
o Accessing other objects: with () {}
! Input
o Keyboard (keyboard_) ! predefined keys (vk_)
o Mouse (mouse_)
o Touch input (device_)
o Gamepad input (gp_) " only Xinput gamepads so far!
! Movement
o Trigonometry (point_, lengthdir_x/y)
o Direct movement (x/y, speed, direction, gravity, friction)
o Moving on a path (path_)
o Physics-based movement (physics_apply_)
o AI-based movement (mp_grid_)
! Collisions
o Bounding box parameters (bbox_)
o Test for overlaps (collision_)
o Physics collisions (physics_)
! Audiovisual functions
o Background images (background_)
o Drawing on screen (draw_)
o Scrolling viewports (view_)
o Surfaces (surface_)
o Particles (part_type ! part_system ! part_emitter)
o Sound and music (audio_)