Errors while playing

Red text under the game means a rule could not run, and it tells you which one.

What the red text is

While a game plays, NutHouse runs every rule 60 times a second. If a rule asks for something that cannot be done, NutHouse skips it and writes a red line under the game, like โ€œEvent 7: โ€ฆโ€. The number is the event's row number on the Events tab.

The game keeps going. Each problem is written once, not 60 times a second.

Why it happens

An object is goneA rule mentions a sprite or sound that is no longer in the game. You deleted it, or it is not in this level.
A formula does not add upA formula divides by zero, or names an object that does not exist, like X("Bal") with a typo.
An old ruleA game saved by an early version of NutHouse uses a condition or action NutHouse no longer has.

How to fix it

  1. Read the red line and note the event number.
  2. Press Esc to stop.
  3. On the Events tab find that row number. Look for a condition or action with a missing object, shown as โ€œ(choose an object)โ€.
  4. Right-click the condition and choose Change settingsโ€ฆ, then pick the right object. Or delete the rule if you no longer need it.
  5. Press โŒ˜R and play again. The red text should be gone.

Three quick ways out

Check the ruleMost errors are a rule pointing at something you deleted. Fix the rule.
UndoIf it started after your last change, press โŒ˜Z until it stops. The โ†ถ Undo tooltip names each step.
RestartClick Restart on the play bar to clear the red text and try the level again.

Still stuck?

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