All examples · Scenes

Scene change

What this example shows

useScene().change(name) replaces the calling scene with another. Title and Play swap back and forth on a timer, each setting its own background through useGame().setBackground. The outgoing scene stays on screen until the incoming one's assets are ready.

Starting