Record a small piece of game state
The fuller example also records whether the clock has been wound. Create a Boolean game variable with ID clock_wound, initially false, in the Variable Designer.
Arrange the clock's Wind response in this order:
| Step | Action | Values |
|---|---|---|
| 1 | Set Variable | Variable Clock Wound(clock_wound); Value true. |
| 2 | Show Message | The winding message; Duration 2.5 seconds. |
Use Add Next Action in the Wind section to append another step. Make sure you are adding to Wind, rather than the similarly named button beneath another verb.
Figure 8. The clock's Wind response sets clock_wound to true, then shows its message. The actions run from top to bottom.
This demonstration records state and shows text. To make a clock model animate or play ticking audio, add the appropriate animation or sound action with a real animation/recording. A sentence mentioning a tick does not create the sound automatically.
