3.4. Program (code)¶
A program, also known as code, is a way to define how actors behave while a game is running. An actor’s program consists of events, commands, and control flow.
Actimator’s Visual Programming Language relies heavily on events. Actors wait until one of the events in their program is triggered. Once an event is triggered, the commands contained inside that event are executed.
Commands control how actors and scenes behave while the game is running and are executed, one at a time, in order. The commands in a program can control how entities look and move, how the game switches between scenes, etc.