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
| Line | What it does |
|---|---|
when the {Big Slime} is beaten | Waits for the boss to be beaten. |
show "You win!" | Shows a banner. |
wait 2 seconds | Gives the player time to read it. |
{Game} is won | Ends the game, with a win. |
{Game} is a name that is always there. It means the game itself.
Try it
- Press Play
, under the little game. - Click the little game, so the keys work.
- 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
- Press Copy
, at the bottom of the script in the code box above. - Press Open your game here, in the builder below.
- Press the Game button
, under the map. It is the one with the gear. - At the bottom of Game Settings, press Game script
. - Press Code
, and paste the script in. Press Save
.
Change the words on the banner to your own. It is the last thing your players will read.
This section ticks itself when you press Play
in the code box.

