Teach me
Press Teach me while playing and, when two sprites touch, NutHouse asks you what should happen.

What it does
The Play panel has a ๐ Teach me button. Its tooltip says โWhen two things touch and no event says what happens, the game stops and asks youโ. Switch it on, then play. The first time two sprites touch and no rule is about them, the game pauses and a panel pops up.
It is the easiest way to write a collision rule, because you do not need to find the picker. You see the touch, you say what should happen.
The panel
The heading says โ๐ {A} touched {B}!โ and asks โWhat should happen? Tick as many as you like.โ The ticks are:
| {B} disappears | Destroy the thing you touched. Coins, gems, bricks. |
|---|---|
| Add 10 to the score | Points. |
| Take away a life | For baddies and spikes. |
| {A} stops | Stop the first thing moving. Good for walls. |
| {A} bounces off | Bounce the first thing. Good for balls. |
| {A} disappears | Destroy the first thing. A laser hitting a wall. |
| Go to the next level | For a flag or a door. |
Then press Make it happen or Nothing should happen. The small print says โThis adds an event to your game. You can change it later in the Events tab.โ
How to
- Press โถ Play level (โR).
- Click ๐ Teach me in the bar at the top.
- Walk your hero into a coin. The panel appears: โHero touched Coin!โ.
- Tick Coin disappears and Add 10 to the score. Press Make it happen.
- Carry on playing. Press Esc and look in the Events tab. Your new rule is there.
After Teach me
The rule is a normal rule. Open the Events tab to add a sound, change the points, or add a second condition. Teach me only asks about pairs that have no rule yet, so it will not ask about coins again.