Hello, I'm beginner.
I'm trying to make inventory with only three slots.
I made an array with width 3, height and depth 1. I also made sprite slots with SlotID instance variable. Every sprite instance has different SlotID, 1,2 and 3. How to use that SlotID instance variable to create picked item icon on exact slot? Also, what would be best way to make such inventory so I can add any picked item to it? I don't want to hardcode specific items because there would be a lot of them. What I have until now is really primitive and the last part where item icon has to be created on exact slot is not working. This is first part where you pick up item.
and another one where I'm trying to create item icon on the slot.