Hello, I need help adding items to my inventory. There are two items (green and red) each with a "Ammount" variable number that will be added to your inventory when you pick up an item from the ground.
The problem for me is that when I pick up the same green items from the ground, each item gets added to the next slot. So more than 1 slot are occupied.
I would like the green ones to gather in one slot and the red ones similar but in a different slot.
This is my first question so far, maybe help will solve this problem.
It's just that events recognize the fact that one of the slots already has the item.
1 When in slots is no item and when we collect with the some ammount, one of the slots changes the animation frame, but...
2 when the item is already in the inventory slot, the quantity is added to the existing one (does not create a new one)
It's hard for me to get this effect because Construct "sees" that one slot is occupied but also sees that the slot next to it is empty and here is the problem
my file:https://www.dropbox.com/s/p5e030m3cs5prn9/adding%20ammount%20to%20slot.c3p?dl=0