Variables
Variables are absolutely essential if you want to make a Game Maker game at anything other than novice level. Each variable has a value which can be edited, taken and used, drawn in text, and much more.
List of preset variables
x
y
hspeed
vspeed
direction
speed
visible
image_index
image_speed
score
lives
health
mouse_x
mouse_y
An introduction to variables
A variable consists of two things - its name and its value. Game Maker has some preset variables, each of which will have its own value at the beginning of the game. Here are some preset values found in Game Maker:
health
lives
score
There are also a set of preset variables which change depending on certain factors. These include (but are not limited to):
mouse_x = the x co-ordinate of the mouse cursor
mouse_y = the y co-ordinate of the mouse cursor
x and y = the x and y co-ordinates of an object. Each object will have its own x and y variables.
page_revision: 2, last_edited: 1218554706|%e %b %Y, %H:%M %Z (%O ago)





