get_state_name

Returns a string of the player’s state.

ArgumentTypeDescription
state_index:realThe state index to get the name of

Example, called from debug_draw.gml:

// draws the player's state:
draw_debug_text( x, y, "state: " + get_state_name( state ));