I wonder if someone can help me with a little problem.
In my game I have boxes of fuses that can be in any one of 4 locations and there can be 0 to 4 boxes available.
Currently, I am using 4 different variables for this
eg BoxAt01, BoxAt02, BoxAt03, BoxAt04
What I'm trying to do is achieve the same result but by using only 1 variable. I have an idea to use a numerical value assigned to the single variable that will allow the game to determine where the boxes are located
eg BoxOfFuses = 0110 - this would mean that there is a box at location 2 and 3, nothing at location 1 and 4.
I have no idea how I would script a procedure that could 'look' at the individual digits and thereby determine whether or not an overlay should be displayed nor how I could change the variable contents to 0 when the player picked up one of the boxes.
If anyone has any ideas I would really appreciate it. I'm struggling to try and reduce the number of variables I have in my game so that it doesn't take in the neighbourhood of 1:30 - 2:00 minutes to reload a saved game.
Skye