Introduction to Properties
Properties are the game logic equivalent to variables. They are stored on the object and can be used to represent things about them such as ammo, health, name, and so on.
There is five types of properties:
|Timer||Starts at the property value and count upwards as long as the object exists. It can for example be used if you want to know how long time it takes the player to complete a level.|
|Float||Uses a decimal number as value, can range from -10000.000 to 10000.000. It is useful for precision values.|
|Integer||Uses integers (whole numbers) as value, between -10000 and 10000. Useful for counting things such as ammunition where decimals are unnecessary.|
|String||Takes text as value. Can store 128 characters.|
|Boolean||Boolean variable, has two values true or false. This is useful for things that has only two modes, like a light switch.|
Properties can be set up and initialised in the Properties panel of the Logic Editor - see the Property Editing page for details. When a game is running, values of properties are set, manipulated and evaluated using the Property Sensor and the Property Actuator.