Hi guys, I've been wracking my brain over this for a while now, my issue is that I want to have an easy-to-use system for storing the status of each chest in a given layout (whether it has been opened or not, and have it act accordingly).
As it stands I have all of the chests inside a family, and the family has an instance variable called "opened" which can be either 1 or 0. The rest of the setup would be easier explained with a screenshot:
I'd rather not have to do this using global variables if it means I'll need a variable for each chest since the game will have a large number of chests.
Can anybody help me brainstorm how I would do this? I'm totally stuck!