Counters, displays and gadgets
Rules for the objects that are not sprites. Each one only appears in the column of an object of that kind.
Simple Advanced Expert show the mode each one first appears in. once marks a red condition: it happens once, at a moment. See how to read these pages.
Conditions · 12
The When half of a rule.
| Name | What it does | Reads as |
|---|---|---|
| Health bar | ||
| Compare the bar simple | Checks how full a health bar is. Asks for: Comparison · Amount | Ball is 0 |
| Bar is empty simple | True when the bar has nothing left. | Ball is empty |
| Button | ||
| Tick box is ticked advanced | True while a tick box is ticked. The player ticks and unticks it by clicking. | Ball is ticked |
| Button is clicked once simple | True once when the player clicks the button. | Ball is clicked |
| Counter | ||
| Compare the counter simple | Checks the number in a counter. Asks for: Comparison · Value | Ball is 0 |
| High scores | ||
| The score is good enough for the table simple | True when the score is big enough to get into the high-score table. | The score is good enough for Ball |
| Question | ||
| The player picks the right answer once simple | True once when the player clicks the right answer. | The player gets Ball right |
| The player picks a wrong answer once simple | True once when the player clicks a wrong answer. | The player gets Ball wrong |
| Text | ||
| Is showing its last line advanced | True when a Text object with several lines is showing its last one. | Ball is showing its last line |
| Text box | ||
| The player presses Enter once advanced | True once when the player presses Enter after typing in the box. Read what they typed with Text("Name box"). | The player finishes typing in Ball (presses Enter) |
| Timer display | ||
| Time runs out once simple | True once, when a countdown clock reaches zero. | Ball runs out of time |
| Compare the seconds shown advanced | Checks how many seconds the clock is showing. Asks for: Comparison · Seconds | Ball shows is 10 seconds |
Actions · 27
The Do half of a rule.
| Name | What it does | Reads as |
|---|---|---|
| Health bar | ||
| Set the bar simple | Fills the bar to an exact amount. Asks for: Amount | Set Ball to 100 |
| Fill the bar up simple | Fills the bar up a bit, like picking up a health potion. Asks for: Add | Add 10 to Ball |
| Take some away from the bar simple | Empties the bar a bit, like taking damage. Asks for: Take away | Take 10 from Ball |
| Button | ||
| Tick it advanced | Ticks a tick box. | Ball gets ticked |
| Untick it advanced | Unticks a tick box. | Ball gets unticked |
| Grey it out advanced | Greys a button out so it can't be clicked, like a level that isn't unlocked yet. | Ball is greyed out (can't be clicked) |
| Make it clickable again advanced | Makes a greyed-out button clickable again. | Ball can be clicked again |
| Counter | ||
| Set the counter simple | Changes the counter to a number. Asks for: Value | Set Ball to 0 |
| Add to the counter simple | Adds to the counter. Asks for: Add | Add 1 to Ball |
| Subtract from the counter simple | Takes away from the counter. Asks for: Subtract | Subtract 1 from Ball |
| High scores | ||
| Add the score to the table simple | Puts the score into the high-score table with a name. Use Text("Name box") to use what the player typed. Asks for: Name | Add the score to Ball as “Player” |
| Wipe the table advanced | Empties the high-score table. | Wipe Ball |
| Question | ||
| Ask it again simple | Clears the answer so the question can be answered again. | Ask Ball again |
| Spawner | ||
| Start spawning simple | The spawner starts making new copies again. | Ball starts making things |
| Stop spawning simple | The spawner stops making new copies. | Ball stops making things |
| Make one now advanced | The spawner makes one copy straight away. | Ball makes one now |
| Change how often advanced | Changes how many seconds the spawner waits between copies. Asks for: Every (seconds) | Ball makes one every 2 seconds |
| Text (also Button, Text box) | ||
| Set the text simple | Changes the words shown. Asks for: Text | Set text of Ball to “Hello!” |
| Show the next line advanced | Shows the next of the Text object's lines, like the next thing a character says. | Ball shows its next line |
| Show the line before advanced | Shows the line before. | Ball shows the line before |
| Show line number… advanced | Shows one of the lines by its number (1 is the first). Asks for: Line number | Ball shows line 1 |
| Text box | ||
| Start typing in it advanced | Puts the typing cursor in the box, so the player can type straight away. | Start typing in Ball |
| Empty it advanced | Empties the box. | Empty Ball |
| Timer display | ||
| Set the time simple | Sets the clock to a number of seconds. Asks for: Seconds | Set Ball to 30 seconds |
| Add time simple | Adds seconds to the clock, like a time bonus. Asks for: Seconds | Add 5 seconds to Ball |
| Pause the clock advanced | Stops the clock counting. | Pause Ball |
| Start the clock again advanced | Starts the clock counting again. | Start Ball again |