Game end

Explanation
This function will end the game and closes the game window. This is handy for having an Exit button.

Examples
In the Left button Mouse event of an Exit button object you could write:

if (show_question("Do you want to exit the game?")) {    game_end; }

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.