This action is will do one of two things depending on the context within which it is called. If it is called from within an event, then it will exit the event and move on to the next one, skipping any action block code that may be placed after it. However if it is used within an Action Block Script, then it will exit the script only and return to the event that called the script, running any subsequent actions. Note that calling this in the middle of a script will not return any value from the script (for that use the return action).

Action Syntax:

exit Syntax




exit Example
The above action block code checks a variable and if it is greater than or equal to 100, the event is exited, otherwise the variable is incremented by one and the instance sprite is given a random scale.