Set state

This function will change the player's state.

Syntax
set_state( state );

Returns
N/A

Basic
// attack_update.gml // sets the player to idle state on frame 1, window 5 of AT_DSTRONG if ( attack == AT_DSTRONG && window == 5 && window_timer == 1 ) { set_state(PS_IDLE); }