This caused me a lot of problems when I first started. This video will help you create a working inventory system that you can build into your game.
youtu.be/FdhFzrF1UhQ
The same principals I use for my current project:
Develop games in your browser. Powerful, performant & highly capable.
Your video doesnt explain how you did the item stacking. I would be more inclined to use an array, but I guess you did say simple inventory.
First thing I do on a new item is to call a check function to see if I have one in my inventory already. If I do I simply add one to the Local variable.
Same thing when I remove an item. If I have an variable > 1 I just reduce the amount by 1
sharpysharps86 why did you post it in here?
sharpysharps86 please don't hijack other people's threads with unrelated content. If you want to promote your game, please make your own thread.
Laura_D apologies, I posted in the wrong thread as I had multiple tabs open of different threads. Sorry once again.