How to win

Try itThe boss and the ending

Every game needs an ending. In yours, the game is won when the boss is beaten.

That rule goes in the game script. A level script watches one level. The game script watches the whole game.

How to read it

LineWhat it does
when the {Big Slime} is beatenWaits for the boss to be beaten.
show "You win!"Shows a banner.
wait 2 secondsGives the player time to read it.
{Game} is wonEnds the game, with a win.

{Game} is a name that is always there. It means the game itself.

Try it

  1. Press Play Play this script, under the little game.
  2. Click the little game, so the keys work.
  3. Walk the hero up to the slime, and press X to swing.

The banner shows, and two seconds later the game is won.

Give it to your game

  1. Press Copy Copy, at the bottom of the script in the code box above.
  2. Press Open your game here, in the builder below.
  3. Press the Game button Game settings, under the map. It is the one with the gear.
  4. At the bottom of Game Settings, press Game script Game script.
  5. Press Code Code, and paste the script in. Press Save Save.

Change the words on the banner to your own. It is the last thing your players will read.

This makes a new game in your Lab and opens the builder right here. It is free.

This section ticks itself when you press Play Play this script in the code box.

Press Play in the code box to finish this section.