Instance Variables. Instance Variables are added to object types but store numbers, text or booleans (on/off flags) individually for each instance. ... For example, a Boolean instance variable could be used to determine if an enemy is hunting down the player (true) or running away (false).