Teach me

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

Coin Quest โ€” NutHouse
The Teach me panel in the Play panel: โ€œHero touched Coin!โ€ with tick boxes and a Make it happen button
The game pauses and asks. Tick what you want, press Make it 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} disappearsDestroy the thing you touched. Coins, gems, bricks.
Add 10 to the scorePoints.
Take away a lifeFor baddies and spikes.
{A} stopsStop the first thing moving. Good for walls.
{A} bounces offBounce the first thing. Good for balls.
{A} disappearsDestroy the first thing. A laser hitting a wall.
Go to the next levelFor 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

  1. Press โ–ถ Play level (โŒ˜R).
  2. Click ๐ŸŽ“ Teach me in the bar at the top.
  3. Walk your hero into a coin. The panel appears: โ€œHero touched Coin!โ€.
  4. Tick Coin disappears and Add 10 to the score. Press Make it happen.
  5. Carry on playing. Press Esc and look in the Events tab. Your new rule is there.
WhenHero collides with Coin
DoDestroy CoinAdd 10 to score

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.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.