Works in every level

Write a group of rules once and it runs in every level of the game.

Treetop Trek โ€” NutHouse
A group in the Events tab with the Works in every level tick box ticked
One tick makes the group run in every level.

The problem it solves

Each level has its own Events tab. That is usually what you want: level 2 has different things in it. But some rules are the same everywhere. Losing a life when lives reach zero. P to pause. A sound when a coin is collected.

Copying those rules into every level works, but then a fix in one level needs doing in all of them. Works in every level fixes that. Tick it on a group and the rules inside run in every level of the game, including levels you add later.

How to

  1. In the Events tab, click + Group and name it, for example Everywhere.
  2. Make sure the group is at the top level, not inside another group.
  3. Tick โ˜ Works in every level. The hint says โ€œThese events work in every level of the game, so you only write them once.โ€
  4. Drag the shared rules in, or click + Event in group to write new ones.

The tick box is hidden in Simple mode. Switch to Advanced or Expert to see it. Changing mode never changes your game.

Good rules to share

WhenNumber of lives is = 0
DoRestart the whole game
WhenUpon pressing P
DoPause the game, or carry on if it is paused
WhenHero collides with Coin
DoDestroy CoinAdd 10 to scorePlay sound Coin

The last one only works where there is a Hero and a Coin. A level without them skips that rule. Nothing breaks.

Where the rules show up

A shared group shows in the Events tab of every level, so you can read it anywhere. Edit it in any level and the change applies to all of them.

Still stuck?

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