O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a status tab

In this step, we will create a status page for our menu, which will show all attributes of this character, including hit points, magic points, level, experience, experience needed for the next level, attack, defense, agility, intelligence, and luck. We will also show the current equipment and skill of this character.

Creating a status tab

Engage Thrusters

We will start with assigning the status parameters for our character and displaying them on our menu:

  1. Let's go back to MonoDevelop and add more code to our Menu.js. Include these variables before the Start function:
    public var fullHP : int = 9999; //The current full HP public var fullMP : int = 999; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required