Game Development Reference
In-Depth Information
Figure 4-31. Retry feature
Adding a Pause Feature
To follow from this point, you can simply open the file BreakaWall-
step4.gameproj .
Pausing in GameSalad is extremely easy, but you need to understand the
concept in order to use it efficiently.
The Pause behavior will overlay a new scene on the top of your current scene
and suspend all the physics of the current scene. It does not pause music,
sound, nor timers. To efficiently build a Pause function, you need:
An actor that can trigger the Pause behavior.
A scene to use as a Pause screen.
A button on the Pause screen to resume the game.
Let's put all this into practice.
Create a new scene. Click the Home button and select the Scene tab. Then click
on the + sign at the bottom left. Rename the scene by clicking on the name.
Type ''Pause'' as the scene name.
 
Search WWH ::




Custom Search