Time for action – creating a Lives game attribute
The game file to import and load for this session is 5961_06_03.stencyl
.
Click on the Settings icon on the Stencyl toolbar at the top of the screen.
In the left-hand panel of the Game Settings dialog box, click on the Attributes option.
Click on the green Create New button.
In the Name textbox, type
Lives
.In the Category textbox, change the word Default to
Scoring
.In the Type section, ensure that the currently selected option is Number.
Change Initial Value to
3
.Click on OK to confirm the configuration.
We'll leave the Game Settings dialog box open, so that we can take a closer look.
What just happened?
We have created a new game attribute called Lives
. If we look at the rightmost panel of the Game Settings dialog box that we left open on the screen, we can see that we have created a new heading entitled SCORING, and underneath the heading, there is a label icon entitled Lives, as shown in the following screenshot:
The Lives item is a new game attribute...