Game Development Reference
In-Depth Information
Adding a variable to a sprite
Let's add a local variable. Add a sprite to the game and select it. You will see that, in the
Properties window on the left-hand side, there is something called Instance variables .
These are local variables, which means that this game object is the only game object that
uses these variables. Usually, these instance variables are variables such as health, shields,
and other stats; each game object's variables will be different.
Search WWH ::




Custom Search