Hello,
I've been working on a inventory system following the MdotStrange course where we're putting objects into a hash table with a shared key, then using array maker to get that key string and their associated value.
The problem is that I can't seem to 'add' to the original value of an object.
For example, if I have a game object of collectible missiles objects that I add first to a hash table with it's;
1. string name
2. int value of 5
3. sprite for the UI
And then pull that data based on the shared key of 'missile' into an Arraymaker proxy, how can I 'add' value to the, I think, Hash Table int value of 5?
Basically, if I collect a missile game object and it's worth 5, how do I then add a value of 5 more to make 10 (and so) when I collect more missiles? I would then display that in the UI, so the player gets 5, 10, 15, etc.
Currently I'm stuck at 5 missiles even if I collect more of them, that original value of 5 from the hash table doesn't get added up.
I will post screen shots I later today.
Thanks,
Steve