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.

3.4.1. Events

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.

3.4.2. Commands

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.

3.4.3. Control Flow

Control flow allows commands in an actor’s program to be executed when certain conditions are met.