Sie sind auf Seite 1von 5

Game Maker GML Quick Reference Sheet -:- http://altgame.com Feedback or report errors: andy@altgame.

com
Note: not a complete list of commands. Refer to the help file for more detail and function parameters. 1
Instance sprite properties
alarm[0..11] Get or set an alarm event. Up to twelve
alarms can be set per instance and they
count down to zero with each game step.
bbox_bottom Gets the position of the bottom-most
point of the instance in the room.
bbox_left Gets the position of the left-most point of
the instance in the room.
bbox_right Gets the position of the right-most point
of the instance in the room.
bbox_top Gets the position of the top-most point of
the instance in the room.
depth Determines what layer the sprite will be
displayed on. 0 = default layer, +ve
behind, -ve infornt.
id Gets the instance unique identifier value
image_alpha Get or set the semi-transparency of the
sprite. 1.0=100% opaque, 0.0 = 100%
transparent, 0.5=50% semi-transparent.
image_angle Get or set the angle of the sprite.
0 = default (East), 90 = North,
180 = West, 270 = South.
image_blend Get or set the blending colour used to
display the instance. c_white is the
default.
image_number Gets the number of sub-images defined in
the current sprite.
image_index Get or set the current sub-image
displayed.
image_speed Get or set the animation playback speed
for the sub-images. 0 = do not animate.
image_xscale Get or set the horizontal scale of the
sprite. 1 = original size, 0.5 = half, 2.0 =
double size. ve values flip the image.
image_yscale Get or set the vertical scale of the sprite.
ve values flip the image.
mask_index Get or set the sprite index used for the
collision mask. Can set to another sprite,
eg: spr_sprite2
object_index Get the unique object identifier. See also
object_get_name.
persistent Get or set the persistent state of the
instance. True means the instance will not
be destroyed when changing rooms.
solid Get or set the solid flag of the instance.
Solid instances cause a special collision.
sprite_index Get or set the sprite to display. eg:
spr_sprite2. A value of -1 means no sprite.
sprite_width Gets the current width of the sprite. See
sprite_get_width for original width.
Affected by image_xscale.
sprite_height Gets the current height of the sprite. See
sprite_get_height for original width.
Affected by image_yscale.
sprite_xoffset Gets the current horizontal position of the
sprites origin or hotspot. Affected by
image_xscale.
sprite_yoffset Gets the current vertical position of the
sprites origin or hotspot. Affected by
image_yscale.
visible Get or set the instances visibility.
Instance functions
instance_activate_all Activate all instances in the current room.
instance_activate_object Activates instances of specified object(s).
instance_activate_region Activate instances inside or outside of a
region in the current room.
instance_count Gets the total number of active instances.
instance_deactivate_all Deactivate all instances in current room.
instance_deactivate_object Deactivate instances of specified object(s).
instance_deativate_region Deactivate instances inside or outside of a
region in the current room.
instance_change Change this instance into another instance
instance_copy Create a copy of this instance.
instance_create Create a new instance in current room.
instance_destroy Destroys this instance, removing it from
the current room.
instance_exists Returns if an instance exists.
instance_find Gets instance Id of (n)th instance of an
object.
instance_furthest Gets Id of instance furthest from a
specified position.
instance_id[0...n] An array of active instance Ids in current
room.
instance_nearest Gets Id of instance nearest to a specified
position.
instance_number Gets the total number of active instances
of a given object.
Instance movement properties
direction Get or set the direction of the instance.
0 = default (East), 90 = North,
180 = West, 270 = South.
friction Get or set the instances friction. A value
greater than zero will reduce the speed
over time.
gravity Get or set the instances gravity.
gravity_direction Get or set the gravity direction.
0 = default (East), 90 = North,
180 = West, 270 = South.
hspeed Get or set the instances horizontal speed.
speed Get or set the instances speed. Applied to
the instances direction, changing speed
and direction will update hspeed and
vspeed.
vspeed Get or set the instance vertical speed.
x Get or set the instances x position.
xprevious Gets the previous x position of the
instance.
xstart Gets the x position of the instance when it
was first created.
y Get or set the instances y position.
yprevious Gets the previous y position of the
instance.
ystart Gets the y position of the instance when it
was first created.
Instance movement functions
distance_to_object Gets the distance from this instance to the
nearest specified instance.
distance_to_point Gets the distance from this instance to a
specified position in the room.
motion_add Adds a speed and direction to the current
instance.
motion_set Set the direction and speed.
move_bounce_all In a step event will bounce this instance
off of all other objects.
When used in a collision event it is limited
to the collision instances.
move_bounce_solid In a step event will bounce off solid
objects. A collision event limits to the
instances in the collision.
move_contact_all Move the instance in a given direction up
to a maximum until it comes into contact
with any other instance.
move_contact_solid Move the instance in a given direction up
to a maximum until it comes into contact
with a solid object.
move_outside_all Move the instance in a given direction up
to a maximum until it is no longer in
contact with any other instance.
move_outside_solid Move the instance in a given direction up
to a maximum until it is no longer in
contact with a solid object.
move_random Randomly place the instance in the room
snapped to the given grid size.
move_snap Reposition the instance to the nearest
point on the specified grid.
move_towards_point Move towards a given position in the
room at the speed specified.
move_wrap Typically used in the Outside Room event,
will wrap the instance to the other side
when it leaves the room.
place_snapped Returns true if the instance is aligned to
the given grid.
Instance collision functions
collision_circle Checks if any instance collided with a
circular, user defined area.
collision_ellipse Checks if any instance collided with an
elliptical area.
collision_line Checks if any instances collide with a
specified line.
collision_point Checks if any instances overlaps a specific
position in the room.
collision_rectangle Checks if any instance collided with a
rectangular, user defined area.
instance_place Checks for a collision between this
instance and another object instance by
temporarily repositioning the object.
instance_position Checks for presence of one more
instances of a given object at a specified
position in the room.
place_empty Returns true if the current instance does
not overlap any other at the specified
position in the room.
place_free Returns true if the current instance does
not overlap any solid objects at the
specified position in the room.
place_meeting Returns true if the current instance
overlaps another object or instance at a
specified position in the room.
position_change Change all instances at a specified location
in the room to become a new object.
position_destroy Destroy all instances at a specific location
in the room.
position_empty Test if a specific position in a room is
empty (no instances to collide with).
position_meeting Test if a specific position in a room
contains an object (all or single instance).
Sprite drawing functions
draw_self Draws the instance sprite.
draw_sprite Draws a frame of a sprite at a given
position.
draw_sprite_ext Draws a sprite at a given position with
specific scale, rotation, colour and alpha.
draw_sprite_general Draws part of a sprite at a given position
with specific scale, rotation and alpha but
also allows blending color from each edge.
draw_sprite_part Draws part of a sprite at a given position.
draw_sprite_part_ext Draws part of a sprite at a given position
with specific scale, rotation, colour and
alpha.
draw_sprite_pos Draws a sprite distorted between four
points in a room.
draw_sprite_stretched Draws a sprite stretched to a specified
scale.
draw_sprite_stretced_ext Draws a sprite stretched to a specified
scale with a color and alpha specified.
draw_sprite_tiled Tiles a sprite at a given position in a room.
draw_sprite_tiled_ext Tiles a sprite at a given position in a room
with a given scale, color and alpha.
Sprite asset functions
sprite_add Creates a new sprite loading from disk.
sprite_add_from_screen Adds a new sub-image to an existing sprite
by capturing a section of the screen.
sprite_add_from_surface Adds a new sub-image to an existing sprite
by capturing a section of a surface.
sprite_assign Copies a sprite image into another sprite.
sprite_collision_mask Specify what type of mask to use for a
sprite.
sprite_create_from_screen Creates a new sprite by capturing a
section of the screen.
sprite_create_from_surface Creates a new sprite by capturing a
section of a surface.
sprite_delete Delete a sprite from memory.
sprite_duplicate Create a duplicate of a sprite.
sprite_exists Check if a sprite exists.
sprite_get_bbox_bottom Returns the bottom of the bounding box
relative to the sprite.
sprite_get_bbox_left Returns the left of the bounding box
relative to the sprite.
sprite_get_bbox_right Returns the right of the bounding box
relative to the sprite.
sprite_get_bbox_top Returns the top of the bounding box
relative to the sprite.
sprite_get_height Gets the height of a sprite.
sprite_get_name Gets the name of a sprite as a string.
sprite_get_number Get the number of sub-images in a sprite.
sprite_get_texture Get the texture Id for a given sub-image of
a sprite.
sprite_get_width Gets the width of a sprite.
sprite_get_xoffset Gets the x origin (hotspot) of a sprite.
sprite_get_yoffset Gets the y origin (hotspot) of a sprite.
sprite_merge Merges two sprites together.
sprite_replace Replace an existing sprite with an image
(strip) from disk. See also sprite_add.
sprite_save Save a sprite sub-image to disk.
sprite_save_strip Save a sprite to disk as a sprite strip.
sprite_set_alpha_from_sprite Set the alpha transparency of a sprite
using another sprite as the mask.
sprite_set_offset Set the x and y hotspot of the sprite origin.
Game Maker GML Quick Reference Sheet -:- http://altgame.com Feedback or report errors: andy@altgame.com
Note: not a complete list of commands. Refer to the help file for more detail and function parameters. 2

Object asset functions
object_exists Returns true if an object exists.
object_get_depth Gets the object depth.
object_get_mask Gets the mask index of an object.
object_get_name Gets the name of an object.
object_get_parent Gets the parent object index of an object.
object_get_persistent Gets the persistent flag of an object.
object_get_solid Gets the solid flag of an object.
object_get_sprite Get the sprite index of an object.
object_get_visible Returns true if the object has its draw
event enabled.
object_is_ancestor Returns true if one object is a child
(grandchild etc) of another object.
object_set_depth Set the depth of an object, effective for
any instances created after the change.
object_set_mask Set the sprite mask for an object.
object_set_parent Sets the parent of an object, effective for
any instances created after the change.
object_set_persistent Set the object to be persistent.
object_set_solid Set the object to be solid.
object_set_sprite Set the sprite used to display the object.
object_set_visible Set the visibility of an object.
Object event properties
event_action Gets the action number of the current
event.
event_number Gets the event type being executed, eg:
ev_step_normal.
event_object The object instance the event is running
from.
event_type Gets the event type being executed, eg:
ev_create.
Object event functions
event_inherited Calls the inherited parent base event.
event_perform Performs a specified event of the calling
instance.
event_perform_object Performs a specified event on a given
object.
event_user Call one of the sixteen user events on the
instance.
Background properties
background_index[0..7] Get or set a background images.
background_alpha[0..7] Get or set a background alpha.
background_blend[0..7] Get or set a background blend colour.
background_color Get or set the rooms background color.
background_foreground[0..7] True if background is displayed in front of
all other objects as a foreground.
background_height[0..7] Get a backgrounds height.
background_hspeed[0..7] Scroll a background horizontally by a given
speed.
background_htiled[0..7] True if the background is tiled horizontally.
background_showcolor True to draw a background color.
background_visible[0..7] Get or set the visibility of a background.
background_vspeed[0..7] Scroll a background vertically by a given
speed.
background_vtiled[0..7] True if the background is tiled vertically.
background_width[0..7] Get a backgrounds width.
background_x[0..7] Get or set the x position of a background
in a room.
background_xscale[0..7] Get or set the x-scale of a background.
background_y[0..7] Get or set the y position of a background
in a room.
background_yscale[0..7] Get or set the y-scale of a background.
Background functions
background_add Load a background png file from disk.
background_assign Copy a background image into another.
background_create_color Create a new background and fill with a
color.
background_create_from_
screen
Copy a portion of the screen to create a
new background.
background_create_from_
surface
Copy a portion of a surface to create a
new background.
background_create_gradient Create a new background and fill with a
gradient color.
background_delete Delete a background from memory.
background_duplicate Create a new background by duplicating
an existing background.
background_exists Returns true a background exists.
background_get_height Get the height of a background asset.
background_get_name Get the name of a background asset.
background_get_texture Get the texture Id for a background.
background_get_width Get the width of a background asset.
background_replace Replaces a background with an external
one.
background_save Save a background to disk.
background_set_alpha_from_
background
Set the alpha transparency of a
background using another one.
Background tile functions
tile_add Add a new tile to a room.
tile_delete Deletes a specified tile.
tile_exists Checks if a given tile exists in the room.
tile_get_alpha Gets the alpha of a given tile.
tile_get_background Get a background index a given tile is
drawn from.
tile_get_blend Get a tiles blending color.
tile_get_depth Get a tiles depth.
tile_get_height Get a tiles height.
tile_get_left Get a tiles left position in its background.
tile_get_top Get a tiles top position in its background.
tile_get_visible Returns true if a tile is visible.
tile_get_width Get a tiles width.
tile_get_x Get a tiles x position in the room.
tile_get_xscale Gets the horizontal scaling of a tile.
tile_get_y Get a tiles y position in the room.
tile_get_yscale Gets the vertical scale of a tile.
tile_layer_delete Delete all tiles at a specified depth.
tile_layer_delete_at Delete all tiles at a specified depth and
position.
tile_layer_depth Moves all tiles at a given depth to a new
depth.
tile_layer_find Returns a tile Id at a given depth and
position.
tile_layer_hide Hide all tiles at a given depth.
tile_layer_shift Move all tiles at a given depth.
tile_layer_show Shows all tiles at a given depth.
tile_set_alpha Set a tiles alpha transparency.
tile_set_background Set the background to use for a tileset.
tile_set_blend Set the tile blending color.
tile_set_depth Set the tiles depth.
tile_set_position Set a tiles x & y position.
tile_set_region Change a tiles width and height to copy
from the tilemap.
tile_set_scale Set a tiles scaling.
tile_set_visible Set a tiles visibility.
Background drawing functions
draw_background Draw a background asset in the room.
draw_background_ext Draw a background asset with scaling,
rotation, blend and alpha.
draw_background_general Draw a background asset with scaling,
rotation, four-corner blending and alpha.
draw_background_part Draw part of a background asset in a room
draw_background_part_ext Draw part of a background asset with
scaling, color blending and alpha.
draw_background_stretched Draw a background asset at a different
size.
draw_background_stretched_
ext
Draw a background asset at a different
size with color blending and alpha.
draw_background_tiled Draw a background asset tiled to fill the
room.
draw_background_tiled_ext Draw a background asset tiled to fill the
room with scaling, blending and alpha.
Surfaces
surface_copy Copy a source surface to a destination.
surface_copy_part Copy part of a source surface to a
destination.
surface_create Create a new surface.
surface_exists Returns true if a given surface exists.
surface_free Destroy a surface and free from memory.
surface_get_height Get height of surface.
surface_get_texture Returns the texture Id for a surface.
surface_get_width Get width of surface.
surface_getpixel Get the color of a pixel in a surface.
surface_save Save a surface to disk.
surface_save_part Save part of a surface to disk.
surface_reset_target Sets the drawing target to the screen.
surface_set_target Sets the drawing target to a specific
surface.
Surface drawing functions
draw_surface Draws the surface in the room.
draw_surface_ext Draw surface with scale, rotation, color
blending and alpha.
draw_surface_general Draw part of a surface with scaling,
rotation, gradient blending and alpha.
draw_surface_part Draw part of a surface.
draw_surface_part_ext Draw part of a surface with scale, color
blending and alpha.
draw_surface_stretched Draw surface stretched in room.
draw_surface_stretched_ext Draw surface stretched with colour
blending and alpha.
draw_surface_tiled Draw tiled surface.
draw_surface_tiled_ext Draw tiled surface with scale, color
blending and alpha.
Drawing (general)
draw_texture_flush Clears all textures from VRAM.
texture_get_height Get height of texture asset.
texture_get_width Get width of texture asset.
texture_set_blending Get or set the global alpha and color
blending in GameMaker.
texture_set_interpolation Get or set the mode for rendering pixels at
different sizes. True to use smooth
resizing, false to use nearest neighbour
(chunky pixels)
texture_set_repeat Get or set the repeat property for tiling a
texture on a 3D model.
Color and blending
color_get_blue
color_get_green
color_get_red
color_get_hue
color_get_saturation
color_get_value
draw_clear
draw_clear_alpha
draw_enable_alphablend
draw_get_alpha
draw_get_color
draw_getpixel
draw_set_alpha
draw_set_blend_mode
draw_set_blend_mode_ext
draw_set_color
draw_set_color_write_enable
make_color_hsv
make_color_rgb
merge_color
Drawing primitives
draw_primitive_begin
draw_primitive_begin_texture
draw_primitive_end
draw_vertex
draw_vertex_color
draw_vertex_texture
draw_vertex_texture_color
Drawing shapes
draw_arrow
draw_button
draw_circle
draw_circle_color
draw_ellipse
draw_ellipse_color
draw_healthbar
draw_line
draw_line_color
draw_line_width
draw_line_width_color
draw_path
draw_point
draw_point_color
Game Maker GML Quick Reference Sheet -:- http://altgame.com Feedback or report errors: andy@altgame.com
Note: not a complete list of commands. Refer to the help file for more detail and function parameters. 3
draw_rectangle
draw_rectangle_color
draw_roundrect
draw_roundrect_color
draw_set_circle_precision
draw_triangle
draw_triangle_color
Room properties
room
room_caption
room_first
room_height
room_last
room_persistent
room_speed Target FPS how many steps per second.
room_width
Room functions
room_add
room_assign
room_duplicate
room_exists
room_get_name
room_goto
room_goto_next
room_goto_previous
room_instance_add
room_instance_clear
room_next
room_previous
room_restart
room_set_background
room_set_background_color
room_set_caption
room_set_height
room_set_persistent
room_set_view
room_set_view_enabled
room_set_width
room_title_add
room_title_add_ext
room_tile_clear
View properties
view_angle[0..7] Get or set the angle of the view,
-359 to +359.
view_current In a draw event, get the current view
being rendered.
view_enabled Get or set views, when off the whole room
will be rendered (scaled if necessary).
view_hborder[0..7] Get or set the horizontal distance from the
window edge a followed instance must
reach before the view is scrolled / moved.
view_hport[0..7] Get or set the height of the view port.
view_hspeed[0..7] Get or set the horizontal speed of the view
when it follows an instance.
view_hview[0..7] Get or set the height of the view.
view_object[0..7] Get or set the object instance to follow.
view_surface_id[0..7] Get or set the surface used for a view.
view_vborder[0..7] Get or set the vertical distance from the
window edge a followed instance must
reach before the view is scrolled / moved.
view_visible[0..7] Get or set the visibility of a view.
view_vspeed[0..7] Get or set the vertical speed of the view
when it follows an instance.
view_wport[0..7] Get or set the width of the view port.
view_wview[0..7] Get or set the width of the view.
view_xport[0..7] Get or set the x position of the view port.
view_xview[0..7] Get or set the x position of the view.
view_yport[0..7] Get or set the y position of the view port.
view_yview[0..7] Get or set the y position of the view.
View functions
window_view_mouse_get_x Gets the mouse x position relative to the
specified view.
window_view_mouse_get_y Gets the mouse y position relative to the
specified view.
window_views_mouse_get_x Same as mouse_x.
window_views_mouse_get_y Same as mouse_y.
Sound and audio
audio_channel_num
audio_emitter_create
audio_emitter_exists
audio_emitter_falloff
audio_emitter_free
audio_emitter_gain
audio_emitter_pitch
audio_emitter_position
audio_emitter_velocity
audio_exists
audio_falloff_set_model
audio_get_type
audio_is_playing
audio_listener_orientation
audio_listener_position
audio_listener_velocity
audio_master_gain
audio_pause_all
audio_pause_music
audio_pause_sound
audio_play_music
audio_play_sound
audio_play_sound_at
audio_play_sound_on
audio_resume_all
audio_resume_music
audio_resume_sound
audio_sound_length
audio_stop_all
audio_stop_music
audio_stop_sound
audio_system
Device input
device_get_tilt_x
device_get_tilt_y
device_get_tilt_z
device_is_keypad_open
device_mouse_check_button
device_mouse_check_button_
pressed

device_mouse_check_button_
released

device_mouse_raw_x
device_mouse_raw_y
device_mouse_x
device_mouse_y
Virtual keys input
virtual_key_add Create a virtual keyboard region on the
device screen.
virtual_key_delete Remove a previously created virtual key
region.
virtual_key_hide Hide the visual representation of the
virtual key on the screen.
virtual_key_show For debugging, draws a rectangle to show
the position and size of the virtual key on
the screen.
Joystick input
joystick_axes
joystick_buttons
joystick_check_button
joystick_direction
joystick_exists
joystick_has_pov
joystick_name
joystick_pov
joystick_rpos
joystick_upos
joystick_vpos
joystick_xpos
joystick_ypos
joystick_zpos
Keyboard input
io_clear
keyboard_check
keyboard_check_direct
keyboard_check_pressed
keyboard_check_released
keyboard_clear
keyboard_get_map
keyboard_get_numlock
keyboard_key
keyboard_key_press
keyboard_key_release
keyboard_lastchar
keyboard_lastkey
keyboard_set_map
keyboard_set_numlock
keyboard_string
keyboard_unset_map
Mouse input
mouse_button
mouse_check_button
mouse_check_button_pressed
mouse_check_button_
released

mouse_clear
mouse_last_button
mouse_wheel_down
mouse_wheel_up
mouse_x
mouse_y
Font functions
font_add*
font_add_sprite
font_add_sprite_ext
font_delete
font_exists
font_get_bold
font_get_fontname
font_get_italic
font_get_last
font_get_name
font_get_size
font_replace
font_set_cache_size
Font drawing functions
draw_highscore
draw_set_font
draw_set_halign
draw_set_valign
draw_text
draw_text_color
draw_text_ext
draw_text_ext_color
draw_text_ext_transformed
draw_text_ext_transformed_
color

draw_text_transformed
draw_text_transformed_color
Particle emitters
part_emitter_burst
part_emitter_clear
part_emitter_create
part_emitter_destroy
part_emitter_destroy_all
part_emitter_exists
part_emitter_region
part_emitter_stream
Particle systems
part_particles_clear
part_particles_count
part_particles_create
part_particles_create_color
part_system_automatic_draw
part_system_automatic_
update

part_system_clear
part_system_create
Game Maker GML Quick Reference Sheet -:- http://altgame.com Feedback or report errors: andy@altgame.com
Note: not a complete list of commands. Refer to the help file for more detail and function parameters. 4
part_system_depth
part_system_destroy
part_system_draw_order
part_system_drawit
part_system_exists
part_system_position
part_system_update
Particle Types
part_type_alpha1
part_type_alpha2
part_type_alpha3
part_type_blend
part_type_clear
part_type_color_hsv
part_type_color_mix
part_type_color_rgb
part_type_color1
part_type_color2
part_type_color3
part_type_create
part_type_death
part_type_destroy
part_type_direction
part_type_exists
part_type_gravity
part_type_life
part_type_orientation
part_type_scale
part_type_shape
part_type_size
part_type_speed
part_type_sprite
part_type_step
DS grids (2D array)
ds_grid_add
ds_grid_add_disk
ds_grid_add_grid_region
ds_grid_add_region
ds_grid_clear
ds_grid_copy
ds_grid_create
ds_grid_destroy
ds_grid_get
ds_grid_get_disk_max
ds_grid_get_disk_mean
ds_grid_get_disk_min
ds_grid_get_disk_sum
ds_grid_get_max
ds_grid_get_mean
ds_grid_get_min
ds_grid_get_sum
ds_grid_height
ds_grid_multiply
ds_grid_multiply_disk
ds_grid_multiply_disk_region
ds_grid_multiply_region
ds_grid_read
ds_grid_resize
ds_grid_set
ds_grid_set_disk
ds_grid_set_grid_region
ds_grid_set_region
ds_grid_shuffle
ds_grid_value_disk_exists
ds_grid_value_disk_x
ds_grid_value_disk_y
ds_grid_value_exists
ds_grid_value_x
ds_grid_value_y
ds_grid_width
ds_grid_write
DS lists
ds_list_add
ds_list_clear
ds_list_copy
ds_list_create
ds_list_delete
ds_list_destroy
ds_list_empty
ds_list_find_index
ds_list_find_value
ds_list_insert
ds_list_read
ds_list_replace
ds_list_shuffle
ds_list_size
ds_list_sort
ds_list_write
DS maps (dictionary)
ds_map_add
ds_map_clear
ds_map_copy
ds_map_create
ds_map_delete
ds_map_destroy
ds_map_empty
ds_map_exists
ds_map_find_first
ds_map_find_last
ds_map_find_next
ds_map_find_previous
ds_map_find_calue
ds_map_read
ds_map_replace
ds_map_size
ds_map_write
String manipulation
ansi_char
chr
clipboard_get_text
clipboard_has_text
clipboard_set_text
ord
real
string
string_byte_at
string_byte_length
string_char_at
string_copy
string_count
string_delete
string_digits
string_format
string_height
string_height_ext
string_insert
string_length
string_letters
string_lettersdigits
string_lower
string_pos
string_repeat
string_replace
string_replace_all
string_set_byte_at
string_upper
string_width
string_withd_ext
Math
abs
arccos
arcsin
arctan
arctan2
ceil
choose
clamp
cos
degtorad
exp
floor
frac
irandom
irandom_range
is_real
is_string
lengthdir_x
lengthdir_y
lerp
ln
log10
log2
logn
math_set_epsilon
max
mean
median
min
power
radtodeg
random
random_get_seed
random_range
random_set_seed
randomize
round
sign
sin
sqr
sqrt
tan
Operating system
os_browser
os_device
os_get_config
os_get_language
os_is_network_connected
os_is_paused
os_lock_orientation
os_powersave_enable
os_type
os_version
Miscellaneous
cursor_sprite
environment_get_variable
external_call
external_define
external_free
fps
game_end
game_id
game_restart
parameter_count
parameter_string
script_execute
Display
display_get_dpi_x
display_get_dpi_y
display_get_gui_height
display_get_gui_width
display_get_height
display_get_orientation
display_get_width
display_mouse_get_x
display_mouse_get_y
display_mouse_set
display_reset
display_set_gui_size
screen_save
screen_save_part
Window
window_center
window_get_caption
window_get_color
window_get_cursor
window_get_fullscreen
window_get_height
window_get_width
window_get_x
Game Maker GML Quick Reference Sheet -:- http://altgame.com Feedback or report errors: andy@altgame.com
Note: not a complete list of commands. Refer to the help file for more detail and function parameters. 5
window_get_y
window_handle
window_mouse_get_x
window_mouse_get_y
window_mouse_set
window_set_caption
window_set_color
window_set_cursor
window_set_fullscreen
window_set_position
window_set_rectangle
window_set_size
File handling
base64_decode
base64_encode
directory_create
directory_exists
json_decode
json_encode
md5_file
md5_string_unicode
md5_string_utf8
program_directory
sha1_file
sha1_string_unicode
sha1_string_utf8
temp_directory
working_directory
Binary files (not HTML5)
file_bin_close
file_bin_open
file_bin_position
file_bin_read_byte
file_bin_rewrite
file_bin_seek
file_bin_size
file_bin_write_btye
INI files
ini_close
ini_key_delete
ini_key_exists
ini_open
ini_read_real
ini_read_string
ini_section_delete
ini_section_exists
ini_write_real
ini_write_string
File system
file_attributes
file_copy
file_delete
file_exists
file_find_close
file_find_first
file_find_next
file_rename
filename_change_ext
filename_dir
filename_drive
filename_ext
filename_name
filename_path
get_open_filename
get_open_filename_ext
set_save_filename
set_save_filename_ext
Files
file_text_close
file_text_eof
file_text_eoln
file_text_open_append
file_text_open_read
file_text_open_write
file_text_read_real
file_text_read_string
file_text_readln
file_text_write_real
file_text_write_string
file_text_writeln
Mouse constants
mb_left left mouse button
mb_middle middle mouse button
mb_right right mouse button
mb_none no mouse button
mb_any any of the mouse buttons
Key constants
vk_nokey no key is pressed
vk_anykey any key is pressed
vk_left left arrow
vk_right right arrow
vk_up up arrow
vk_down down arrow
vk_enter enter key
vk_escape escape key
vk_space spacebar
vk_shift any shift key
vk_control any control key
vk_alt alt key
vk_backspace backspace key
vk_tab tab key
vk_home home key
vk_end end key
vk_delete delete key
vk_insert insert key
vk_pageup page up key
vk_pagedown page down key
vk_pause pause/break key
vk_printscreen print screen / sysrq key
vk_f1 ... vk_f12 F1 to F12 function keys
vk_numpad0 ... vk_numpad9 numeric numpad keys 0 to 9
vk_multiply multiply key on numeric keypad
vk_divide divide key on numeric keypad
vk_add addition key on numeric keypad
vk_subtract subtraction key on numeric keypad
vk_decimal decimal dot key on numeric keypad
Event_type constants
ev_create
ev_destroy
ev_step
ev_alarm
ev_keyboard
ev_mouse
ev_collision
ev_other
ev_draw
ev_keyrelease
ev_trigger (obsolete)
Color constants
c_aqua
c_black
c_blue
c_dkgray
c_fuchsia
c_gray
c_green
c_lime
c_ltgray
c_maroon
c_navy
c_olive
c_orange
c_purple
c_red
c_silver
c_teal
c_white
c_yellow

Das könnte Ihnen auch gefallen