Pause and carry on

Freeze a game with the Pause button, or let the player pause it with a key using a rule.

Coin Quest โ€” NutHouse
Coin Quest paused in the Play panel, with โ€œPausedโ€ shown over the game and the button now saying Carry on
A paused game. The button changes to โ–ถ Carry on.

The Pause button

Click โšโš Pause on the play bar. Everything stops, the clock stops, and โ€œPausedโ€ appears over the game. The button changes to โ–ถ Carry on. Click it and the game picks up exactly where it was.

This is for you while testing. Players of your shared web page do not get this button, so give them a pause key with a rule.

Pausing from a rule

There are three actions in the โš™ Special column, and one condition.

Pause the gameFreezes everything: nothing moves and the clock stops. Rules still run, so a key or button can un-pause.
Carry on (un-pause)Un-freezes a paused game so everything moves again.
Pause, or carry on if pausedOne key for both: pauses, or carries on if already paused.
The game is pausedTrue while the game is paused. Use it to show a โ€œPausedโ€ message.

How to add a pause key

  1. On the Events tab click + New event.
  2. In โŒจ Keyboard & mouse choose Upon pressing a key and press P.
  3. In the โš™ Special cell add Pause, or carry on if paused.
WhenUpon pressing P
DoPause the game, or carry on if it is paused

To show the player it is paused, add a Text object saying Paused, untick Visible when the level starts, and add two rules:

WhenThe game is paused
DoShow Paused text
WhenNOT: The game is paused
DoHide Paused text

Controls off is not pause

Switch off the player's controls stops the player moving their character, but everything else keeps going. That is for cut-scenes and the end of a level, not for pausing. Switch the player's controls back on gives control back.

Still stuck?

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