Game Development Reference
In-Depth Information
Figure 7-39. MaxLevel update
Next, create a new actor named ''BoxLevel.'' Double-click this actor to open it in
the Actor Editor. Create an actor attribute of type integer named ''Level.''
Create a new rule with the condition ''Attribute'' ''BoxLevel.Level'' ''≤''
''game.MaxLevel.'' Drag and drop a Display Text behavior and select
BoxLevel.Level as an attribute to display. Change the size to 60.
Expand the Otherwise section of the rule and drag and drop a Display Text
behavior. Type a capital X letter to display. Change the size to 60 and the color
to red.
The rule is shown in Figure 7-40.
 
Search WWH ::




Custom Search