Game Maker: Studio 1.3 Cheat Sheet (Date: August 6, 2014; cf. http://docs.yoyogames.com/) -
-
-‐
o Keyboard (keyboard_) ! predefined keys (vk_) o Mouse (mouse_)
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)
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_)
Conditions o if () {}
(checked once)
o while () {}
(checked until condition not met)
o switch () {}
(differentiate between options)
o for () {}
(repeat within a given range)
o AI-based movement (mp_grid_) -‐
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 () {}
Collisions o Bounding box parameters (bbox_) o Test for overlaps (collision_)
! simplified version: repeat () {} -‐
Input
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_)
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.