Make an RPG
Objects are variables that hold other variables.
This is an object with 0 variables
Here is an object with 3 variables:
Now let's print out the player's hit_points
Set hit points to 7.
To set hit points to maximum, we do:
In the next lesson, we will learn about Examples of how to use Spread Attributes
Get the Latest Tutorial Updates