Functions

These are all of the functions you can use in your scripts.

Available Common GML Functions

General Functions

  • Player-related Functions

    Sprite Functions

    Sound Functions

    View Functions

    Custom Colors Functions

    • set_num_palettes( num )  Reference→
    • set_color_profile_slot( color_slot, shade_slot, R, G, B )  Reference→
    • set_color_profile_slot_range( color_slot, H, S, V )  Reference→
    • get_color_profile_slot_r( color_slot, shade_slot )  Reference→
    • get_color_profile_slot_g( color_slot, shade_slot )  Reference→
    • get_color_profile_slot_b( color_slot, shade_slot )  Reference→
    • set_character_color_slot( shade_slot, R, G, B )  Reference→
    • set_article_color_slot( shade_slot, R, G, B )  Reference→
    • set_character_color_shading( shade_slot, value )  Reference→

    Shader Functions

    Attack/Hitbox Grid Functions

    • get_attack_value( attack, index )  Reference→
    • set_attack_value( attack, index, value )  Reference→
    • reset_attack_value( attack, index )  Reference→
    • get_window_value( attack, window, index )  Reference→
    • set_window_value( attack, window, index, value )  Reference→
    • reset_window_value( attack, window, index )  Reference→
    • get_hitbox_value( attack, hitbox, index )  Reference→
    • set_hitbox_value( attack, hitbox, index, value )  Reference→
    • reset_hitbox_value( attack, hitbox, index )  Reference→
    • get_num_hitboxes( attack )  Reference→
    • set_num_hitboxes( attack, value )  Reference→
    • reset_num_hitboxes( attack )  Reference→
    • destroy_hitboxes()  Reference→
    • get_hitbox_angle( hitbox_id )  Reference→
    • get_kb_formula( damage, kb_adj, kb_mult, hbox_damage, hbox_bkb, hbox_kb_scale )  Reference→
    • get_hitstun_formula( damage, kb_adj, kb_mult, hbox_damage, hbox_bkb, hbox_kb_scale )  Reference→
    • get_hitstop_formula( damage, hbox_damage, hbox_hitstop, hbox_hitstop_scale, hbox_extra_hitstop )  Reference→
    • create_hitbox( attack, hitbox_num, x, y )  Reference→
    • create_deathbox( x, y, w, h, player, free, shape, lifespan, bg_type )  Reference→

    Stage Scripting Functions

    Easing Functions

    Interpolates between start and end over the total time with current time being your current position in the interpolation. This website can help to understand the effect of each function.

    • ease_linear( start, end, current time, total time )
    • ease_backIn( start, end, current time, total time, overshoot )
    • ease_backOut( start, end, current time, total time, overshoot )
    • ease_backInOut( start, end, current time, total time, overshoot )
    • ease_bounceIn( start, end, current time, total time )
    • ease_bounceInOut( start, end, current time, total time )
    • ease_circIn( start, end, current time, total time )
    • ease_circOut( start, end, current time, total time )
    • ease_circInOut( start, end, current time, total time )
    • ease_cubeIn( start, end, current time, total time )
    • ease_cubeOut( start, end, current time, total time )
    • ease_cubeInOut( start, end, current time, total time )
    • ease_expoIn( start, end, current time, total time )
    • ease_expoOut( start, end, current time, total time )
    • ease_expoInOut( start, end, current time, total time )
    • ease_quadIn( start, end, current time, total time )
    • ease_quadOut( start, end, current time, total time )
    • ease_quadInOut( start, end, current time, total time )
    • ease_quartIn( start, end, current time, total time )
    • ease_quartOut( start, end, current time, total time )
    • ease_quartInOut( start, end, current time, total time )
    • ease_sineIn( start, end, current time, total time )
    • ease_sineOut( start, end, current time, total time )
    • ease_sineInOut( start, end, current time, total time )