Building Game Properties
For LEGO Soldier, we want to store the current game's score and the current health of the Main actor in the game's properties. Since the Score property is created automatically when you first create your game, the only property we need to add is Health. To do this, switch to the Game tab and click "Add a Property" to add the Health property with a default value of 100, as shown in Figure 2-23. You will also want to make sure the "higher score is better" button is selected so that Popfly's achievements feature will automatically know how to rank the game's score.
Figure 2-23. Adding a Health property for the Health bar
Get Coding4Fun now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.