Game Development Reference
In-Depth Information
Figure 4-14. The Brick rule
Display Text Rules and Behaviors
The last actor that needs a behavior at this stage is the display text. It will
permanently display the content of a text attribute on the scene. The trick is that
the attribute will be empty until the game is won.
Drag and drop a Display Text attribute and change the setting of Text to
''game.TextToDisplay.'' You can leave all the rest as per default. Your behavior
should be similar to Figure 4-15.
Figure 4-15. Displaying the winning text
Layout of the Scene
The next step is to position the actors on the scene. Drag your actors onto the
scene and try to match Figure 4-16. You will need to drag the Brick into the
scene six times in order to create six instances of this actor.
 
Search WWH ::




Custom Search