Scratch for Java

Window::setGameSpeed()

How fast the game runs: 1 is normal, 2 twice as fast, 0.5 half as fast; up to 8. Each tick still is 1/60 s of game time; there are more or fewer of them per second.

Examples

View on GitHub

Syntax

Java

.setGameSpeed(speed)

Parameters

Name Data Type Description
speed double the game speed

Return

void

setGameSpeed()

Create Shareable URL

Select Sections