GML Scripts by @xubiod
Go to the GitHub wiki for more information about each script.
Click on “View in GitHub” to check out the scripts!
Want to add something? First, go here. I don’t want to add anything from gmlscripts.com (If I add anything that is on the site, it’s probably a coincidence. I don’t check there often.) If it’s not there, yet you want to add a script, create a pull request!
These are scripts for use in GameMaker: Studio 1.4.x and GameMaker Studio 2.x. These scripts were made in GM:S 1.4.x, and is formatted for GM:S 1.4.x. The scripts work in GMS 2.x, yet some backwards compatibility is needed.
Total amount of scripts: 45
Quick Navigation for The Lazy (like me!)
Alarms | Async | Drawing | Images/Sprites | Instances | Masks/Bounding Boxes | Math | Random | Scripts | Shaders | Strings | Time
Script “Hierarchy” (not all of these are in the repo just yet, and these might not be all of them locally)
Alarms
- Creating
- Disposing
Async
async_dialog_complete()
Wiki Page
Drawing
draw_text_outline()
Wiki Pagedraw_text_outline_color()
Wiki Pagedraw_text_outline_ext()
draw_self_shader()
Images/Sprites
- Scaling
image_scale()
image_scale_box()
image_scale_proportional()
image_scale_proportional_box()
- Flipping
image_flip_x()
image_flip_y()
- Squash and Stretch
image_squish_x()
image_squish_y()
Instances
- Creating
instance_create_depth()
(Not recommended for use with GameMaker Studio 2.x (function already exists))
- Activating/Deactivating
instance_activate_in_view()
instance_deactivate_in_view()
Masks/Bounding Boxes
- Masks
mask_set_as_spr()
mask_unassign()
- BBox Out of View
bbox_top_out_view()
bbox_left_out_view()
bbox_bottom_out_view()
bbox_right_out_view()
- BBox Out of Room
bbox_top_out_room()
bbox_left_out_room()
bbox_bottom_out_room()
bbox_right_out_room()
Math
move_decimal_place()
Random
- Color
irandom_color()
random_color()
- Arguments
random_argument()
Scripts
- Execution
script_exist_execute()
Shaders
- Set Uniform
shader_set_uniform_vec1_from_str()
shader_set_uniform_vec2_from_str()
shader_set_uniform_vec3_from_str()
shader_set_uniform_vec4_from_str()
Strings
char_is_vowel()
newline_to_hash()
(Not recommended for use with GameMaker Studio 2.x (hashes are obsolete in favor of newline characters))string_reverse()
Time
accurate_milliseconds()
accurate_seconds()
accurate_minutes()