Scratch for Java

Window::pause()

Pauses the game: run() is no longer called, and timers, gliding and animations stand still. The window keeps drawing, so the paused picture stays visible, and keys and clicks still reach methods like whenKeyPressed, so a key can resume() the game.

Examples

View on GitHub

Syntax

Java

.pause()

Return

void

pause()

Create Shareable URL

Select Sections