When compiled all constants in your code should automatically be swapped with their respective values. I'm not sure whether the Galaxy Editor does so, but at least it should.
That makes it the best since read times are great and write times barely exist. Also you don't have to do the string additions like in 2).
When compiled all constants in your code should automatically be swapped with their respective values. I'm not sure whether the Galaxy Editor does so, but at least it should.
That makes it the best since read times are great and write times barely exist. Also you don't have to do the string additions like in 2).
Thanks!
But if all the constants in the code are swapped with their respective values during compilation, would I still be able to dynamically call on them?
E.g. DURING the game, something happens and the game sets player's first skill with an ID of 3. This means when he uses his first skill, constant variables involved would be attackName[3], attackDamage[3] and attackRange[3], where attackName[ID] is the call to this constant with array of "ID".
For my current map, I have heaps of constant information (A LOT) I want to store, which I will then use throughout the game.
Please note:
Thanks.
Best Regards, Vermore
Constants should yield you the best results.
When compiled all constants in your code should automatically be swapped with their respective values. I'm not sure whether the Galaxy Editor does so, but at least it should.
That makes it the best since read times are great and write times barely exist. Also you don't have to do the string additions like in 2).
Thanks! But if all the constants in the code are swapped with their respective values during compilation, would I still be able to dynamically call on them? E.g. DURING the game, something happens and the game sets player's first skill with an ID of 3. This means when he uses his first skill, constant variables involved would be attackName[3], attackDamage[3] and attackRange[3], where attackName[ID] is the call to this constant with array of "ID".
@Vermore: Go
Yea, sure. The values gets swapped in the background basically. So you'll not notice anything about this. You can use them just like normal variables.
@s3rius: Go
Thanks once again Professor.