In actionscript there are 3 main variable types these include:
In most cases variables will only remember their set value till the game is ended, then any value stored will be lost. This is why in many games the values of every variable are saved to a file so that when you open the game again all the variables will load their values from the file.
- Numbers - Pretty obviously these store any number value.
- Stings - These are used to store words/letters.
- Boolean - These store only true or false.
In most cases variables will only remember their set value till the game is ended, then any value stored will be lost. This is why in many games the values of every variable are saved to a file so that when you open the game again all the variables will load their values from the file.
No comments:
Post a Comment