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 gone | A 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 up | A formula divides by zero, or names an object that does not exist, like X("Bal") with a typo. |
| An old rule | A game saved by an early version of NutHouse uses a condition or action NutHouse no longer has. |
How to fix it
- Read the red line and note the event number.
- Press Esc to stop.
- On the Events tab find that row number. Look for a condition or action with a missing object, shown as โ(choose an object)โ.
- Right-click the condition and choose Change settingsโฆ, then pick the right object. Or delete the rule if you no longer need it.
- Press โR and play again. The red text should be gone.
Three quick ways out
| Check the rule | Most errors are a rule pointing at something you deleted. Fix the rule. |
|---|---|
| Undo | If it started after your last change, press โZ until it stops. The โถ Undo tooltip names each step. |
| Restart | Click Restart on the play bar to clear the red text and try the level again. |