Money and Credits in Attributes or Tables?
Should a put the game money or credits in an attributes or in a table? Is it the same or there are some recommendations about this topic?
Best Answer
-
JohnPapiomitis Posts: 6,256
@iTopGames
@Braydon_SFX
You dont want in game currency in a table. Put it in a attribute so you can reference them in the first part of a rule.
For example:
Say you have a gun that costs 100
You only want to be able to buy it if you have enough money, so in your buy button you would do when touch is pressed and money is greater then or equal to 100
You cant do that if its in a table becuase you cant access the expression editor to pull the table value, you can only select an attribute as the first part of the rule.
Answers
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
If you can use a index for something you can use a interger