Exit Icon Exit

This action 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 Function, then it will exit the function only and return to the event that called the function, running any subsequent actions.

NOTE Calling this in the middle of a function will not return any value (for that you should use the Return action).

 

Action Syntax:

Exit Action

Example:

Exit ExampleThe 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.