list of variables
This is a list of all built-in Game Maker variables that are not also global variables or arrays.
For a list of global variables, see list of global variables and for a list of arrays, see list of arrays.
| A | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
|---|---|---|---|---|---|
| argument 0 to 15 | local | no | Lite | ||
| argument_relative | local | Wether action script argument is set to relative | yes | ||
| B | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| background_alpha | global | Background transparency | no | Pro | |
| background_blend | global | Blending color to use when drawing the background | no | Lite | |
| background_color | global | Background color of the current room | no | Lite | |
| background_foreground | global | Whether the background is actually a foreground | no | Lite | |
| background_height | global | Height of the background | no | Lite | |
| background_hspeed | global | Horizontal speed of the background | no | Lite | |
| background_htiled | global | Horizontally tiled | no | Lite | |
| background_index | global | Current background used | no | Lite | |
| background_showcolor | global | Show background color of room : true or false | |||
| background_visible | global | How visible a backgrounds image is | no | Lite | |
| background_vspeed | global | Vertical speed of the background | no | Lite | |
| background_vtiled | global | Vertically tiled | no | Lite | |
| background_width | global | Width of the background | no | Lite | |
| background_x | global | x position of a background. | no | Lite | |
| background_xscale | global | The horizontal scaling of a background. | no | Lite | |
| background_y | global | y position of a background. | no | Lite | |
| background_yscale | global | The vertical scaling of a background. | no | Lite | |
| bbox_bottom | Bottom of the bounding box of the instance | no | Pro | ||
| bbox_left | Left side of the bounding box of the instance | no | Pro | ||
| bbox_right | Right side of the bounding box of the instance | no | Pro | ||
| bbox_top | Top side of the bounding box of the instance | no | Pro | ||
| C | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| caption_health | global | Caption of health in room_caption | no | Lite | |
| caption_lives | global | Caption of lives in room_caption | no | Lite | |
| caption_score | global | Caption of score in room_caption | no | Lite | |
| current_day | global | yes | Lite | ||
| current_hour | global | yes | Lite | ||
| current_minute | global | yes | Lite | ||
| current_month | global | yes | Lite | ||
| current_second | global | yes | Lite | ||
| current_time | global | yes | Lite | ||
| current_weekday | global | yes | Lite | ||
| current_year | global | yes | Lite | ||
| D | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| direction | local | Direction of movement of an instance | no | Lite | |
| E | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| event_occured | |||||
| F | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| fps | global | The current frames per second. | yes | Lite | |
| friction | local | The force of friction on an instance. | no | Lite | |
| G | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| gravity | local | The force of gravity on an instance. | no | Lite | |
| gravity_direction | local | The direction of the force of gravity on an instance. | no | Lite | |
| H | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| hspeed | local | The horizontal speed of an instance. | no | Lite | |
| I | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| id | local | The id of an instance. | no | Lite. | |
| image_index | local | the sub image displayed | no | Lite | |
| image_xscale | local | The horizontal scaling of an instance's sprite. | no | ? | |
| image_yscale | local | The vertical scaling of an instance's sprite. | no | ? | |
| instance_count | global | The number of instances in a room . | yes | Lite. | |
| instance_id | ?? | ?? | ?? | ?? | |
| image_speed | The speed of the sprite's animation | no | ? | ||
| K | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| keyboard_key | global | ||||
| keyboard_lastchar | global | ||||
| keyboard_lastkey | global | ||||
| keyboard_string | global | no | |||
| M | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| mask_index | global | ||||
| move_grid | global | no | Pro | ||
| O | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| object_index | local | The type of object an instance is. | yes | Lite | |
| P | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| path_endaction | |||||
| path_index | local | ||||
| path_position | local | ||||
| path_positionprevious | |||||
| path_speed | local | ||||
| path_orientation | |||||
| path_scale | |||||
| persistent | |||||
| R | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| room | global | Id of the current room. | yes | Lite | |
| room_caption | global | Window caption / name of the room. | no | Lite | |
| room_first | global | First room in game. | yes | Lite | |
| room_last | global | Last room in game. | yes | Lite | |
| room_persistent | global | Is the current room persistent? | no | Lite | |
| room_speed | global | Game speed / individual room speed | no | Lite | |
| room_height | global | Height of the current room in pixels. | no | Lite | |
| room_width | global | Width of the current room in pixels. | no | Lite | |
| S | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| solid | local | Whether or not a collision is treated as solid. | no | Lite | |
| speed | local | Overall speed of an instance. | no | Lite | |
| sprite_height | local | The height of an instance's sprite. | yes | Lite | |
| sprite_index | local | The objects current sprite | no | Lite | |
| sprite_width | local | The width of an instance's sprite. | yes | Lite | |
| T | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| timeline_index | local | no | |||
| timeline_position | local | no | |||
| timeline_speed | local | no | |||
| transition_color | ?? | ?? | ?? | ?? | |
| transition_kind | ?? | ?? | ?? | ?? | |
| transition_steps | ?? | ?? | ?? | ?? | |
| V | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| vspeed | local | Vertical speed of an instance | no | Lite | |
| visible | Visibility of an object | no | |||
| X | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| x | local | The current x position of an instance. | no | Lite | |
| xprevious | local | The x position of an instance last step. | no | Lite | |
| xstart | local | The x position where an instance was created. | no | Lite | |
| Y | Variable Name | Scope | Contains / Does | Read Only? | Pro / Lite |
| y | local | The current y position of an instance | no | Lite | |
| yprevious | local | The y position of an instance last step. | no | Lite | |
| ystart | local | The y position where an instance was created. | no | Lite |
Variables by Category
Mouse
Movement
Rooms
- room - the current room
- room_caption - the title of a window.
- room_speed - intended steps per second of the current room.
- room_persistent
Read-Only
- room_first - index of the first room in your game.
- room_height - height of the current room in pixels.
- room_last - index of the last room in your game.
- room_width - width of the current room in pixels.
Sprites
Mouse Sprite
Object / Instance Sprites
Size
Scaling
To Do
- Not all variable are listed. If you know a variable not included, please add it.
- Some variables need descriptions
| Categories: GML : Variables |