Game restart

Explanation
This function will restart the game, returning it to the exact same state as when the game was started.

Examples
In the Left button Mouse event of a Restart button object you could write:

if (show_question("Do you want to restart the game?")) {    game_restart; }

Remarks
When calling this function, please realize that this change does actually not occur at that precise moment. It only happens after the current action is fully executed. So the rest of the script will still be executed, and the same applies to possible calling scripts.