Scratch for Java

Stage::pauseWith()

Pauses this stage under a menu, e.g. when the player presses Escape: from the next tick on only the menu runs and gets input. It is drawn over this stage, which stands still and shows through darkened (unless the menu has a backdrop). The menu ends with close(), and this stage runs on where it stopped. Switching to another stage ends both.

Only the stage on screen can be paused, and one menu at a time. Music, sounds and timers go on while paused.

Examples

View on GitHub

Syntax

Java

.pauseWith(menu)

Parameters

Name Data Type Description
menu Stage the pause menu, a stage of its own

Return

void

pauseWith()

Create Shareable URL

Select Sections