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.
| Setting | Effect |
|---|---|
| Name | The name the graph uses, such as Lives |
| Type | What it holds: Number, Yes / no, Text, Object, Player or Team |
| Scope | Where the value is kept |
| Shown | Shows its value on screen |
| Exposed | Lets 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:
| Option | Effect |
|---|---|
| Just this graph | Keeps one value for this graph |
| On this object | Keeps one value for this object. Exposed ones show under Starting values in the Inspector |
| Each player | Keeps one value for each player |
| Whole level | Keeps one value for the whole level |
a variable and choose Delete to remove it.
Adding a timer
→ Timer and fill in the fields.
| Setting | Effect |
|---|---|
| Name | The name the graph uses, such as Match clock |
| Length | How long it runs, in seconds |
| Counts | Whether 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
| Button | Action |
|---|---|
| Use teams | Turns teams on, with Team 1 and Team 2 |
| Team | Adds another team, up to 4 |
| Mark | Gives a team a mark: Flag, Circle, Triangle or Square |
| Remove | Removes the team, or turns teams off when only two are left |
Teams work with a single player.