Get RAPTOR

Variables and teams

The Variables category of the palette holds the variable list, timers and teams.

Adding a variable

→ Variable and fill in the fields.

SettingEffect
NameThe name the graph uses, such as Lives
TypeWhat it holds: Number, Yes / no, Text, Object, Player or Team
ScopeWhere the value is kept
ShownShows its value on screen
ExposedLets each object set its own starting value. Needs the On this object scope

Press Add. When you edit a variable later, you can also set Starts at.

Scope has four options:

OptionEffect
Just this graphKeeps one value for this graph
On this objectKeeps one value for this object. Exposed ones show under Starting values in the Inspector
Each playerKeeps one value for each player
Whole levelKeeps one value for the whole level

a variable and choose Delete to remove it.

Adding a timer

→ Timer and fill in the fields.

SettingEffect
NameThe name the graph uses, such as Match clock
LengthHow long it runs, in seconds
CountsWhether it counts Down or Up

Control it with the Timers nodes in Game. Timer runs out, in When, fires when it ends.

Teams

Teams are set on the level's Brain. If the level has no Brain, add one:

Add → Brain

ButtonAction
Use teamsTurns teams on, with Team 1 and Team 2
TeamAdds another team, up to 4
MarkGives a team a mark: Flag, Circle, Triangle or Square
RemoveRemoves the team, or turns teams off when only two are left

Teams work with a single player.