Right now, my game saves global values to keep track of what was collected in a level.
For example, I have 6 chests that contain a Flask each. These chests use global values so that when the player reloads the same level, they are not there anymore unless they didn't pick it up. A simple 0 that turns to 1. 0 being that the chest is still available, and 1 for the chest already opened.
Start of Frame
- If Global value "ChestFlask01" = 1
- Destroy "ChestFlask01"
and so on ...
Now, my levels has a maximum of 50 coins that the player can get from a particular level and I obviously don't want the player to farm the level for coins. Should I create 50 global values and 50 different coins to identify which one has been picked up or is there a much better way of keeping track which coins have been taken already?
I'm looking for suggestions.
Any help would be appreciated