If you want a variable to relate to each instance of an object, then you use an object private variable (for example, each objects health, level, if its been selected, etc). If you want a variable which is global, then you use global variables (for example, time, number of lives, etc)