Sometimes actions needs to be performed on complex conditions for which there is no event associated.
In these cases, the developer needs to write a special condition under which, the action will be performed.
And the game engine has to be instructed to check the condition at every possible moment.
When the condition is met, the action is performed. This offers great flexibility to the developer.
However, conditional actions are in the end actions that need to be linked to an event (this is how GameMaker works).
If the condition needs to be checked every time, then the event is naturally, the "step" event.
And the action is simply a piece of program that additionally checks for the condition.
Conditional Actions - Make reference to this document in order to have a clearer view on how conditional actions work
This project has been funded with support from the European Commission. This web site reflects the views only of the author, and the Commission cannot be held responsible for any use which may be made of the information contained therein.
The V4T - Videogames 4 Teachers project © 2018