Part 7: Winning and saving

Steps 26 to 30. A hidden โ€œYou Win!โ€ message that appears when the last brick goes, then play the whole game, save it, and share it.

Untitled โ€” NutHouse
The tutorial panel saying โ€œNice one!โ€ after a step is finished
Nice one! Five more steps and the game is finished.

What this part teaches

Two new ideas. First, an object can start hidden and be shown by a rule. Second, NutHouse can count copies: โ€œno bricks leftโ€ is a condition. Then the last three steps are about being finished: play from the start, save a .nuthouse file, share it.

Step 26: A message for winners

  1. In the Level tab, press + Add object, New, then Text.
  2. In its settings on the right, change Words to You Win!.
  3. Untick Visible when the level starts. The text stays hidden until a rule shows it.

Step 27: Winning!

  1. Press + New event, click Brick, then Compare the number of these objects. Pick = equal to and 0. Press Add.
  2. Under your Text choose Show.
  3. Under Ball choose Stop.
Compare the number of these objects
WhenNumber of Brick = 0
DoShow TextStop Ball

Step 28: Play your game!

Press โ–ถโ–ถ Play game and play Chocobreak from start to finish. Can you win? Play game starts from level 1 with score and lives reset, which is how a player will see it.

Step 29: Save it

Press โŒ˜S, or the Save button, and give your game a name, like Chocobreak. It becomes a .nuthouse file. The toolbar shows the name, and the dot in front of it goes away.

Step 30: You made a game! ๐ŸŽ‰

Press Finish. Want to show a friend? Press Shareโ€ฆ to turn your game into a web page that plays in any browser. The step also lists ideas to try next, and so does After the tutorial.

Still stuck?

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