11. Watch values during a test
Use the runtime preview to check what the game is doing. Variable Designer keeps showing the starting definition; it is not a live values window.
1. Apply the object actions and save the project.
2. Start a fresh preview with Play / Restart, or Test Scene for the room you are working on.
3. Click Show Debug Console below the preview.
4. Enter get clock_wound and submit the command. Before using the clock, the result should be false.
5. Use the clock, then enter get clock_wound, get score and get attempts one at a time.
Figure 14. The console reports score = 10 after the first test. A get command prints a result at the time you submit it.
| Test in the unguarded version | clock_wound | score | attempts |
|---|---|---|---|
| Fresh preview | false | 0 | 0 |
| Use the clock once | true | 10 | 1 |
| Use it a second time | true | 20 | 2 |
That second reward is expected in this early version: there is no condition yet. It shows why a stored flag must actually be checked before awarding points. Chapter 12 makes that change.
A console result is not a live watch. If you change a value after asking for it, the old printed result does not update itself. Run get again before deciding that the value is wrong.
