An inventory system error

How do I…

Create a perfect inventory system for a top down exploration game : setting the default inventory system along with the items is a lot more complicated than expected

What is the expected result

I need to address the fact that i am very much new to the functionality of Gdevelop (only using it since October 2024). I’ve successfully created an inventory slot that could appear and disappear when i press the “I” key, it follows the player, and could picked up both normal item and stackable item. I just wish specifically when trying to adjust so that the number count on the stackable item on the inventory slot stays where it’s at.

What is the actual result

A little context on how the item worked (as far as i’m aware since i actually followed a tutorial on youtube) : The item is made up of 2 types which represented in the event sheet as 2 object groups. Now i have 2 stackable item being displayed so far, one is a paper while the other is a rock, when i picked up the paper item first, everything went smooth, it appeared on the inventory slot which is following the player and the number count is on top of the paper item which is following the inventory slot, basically everything inside the slot stay put. Now when i picked up the rock item, suddenly the number count just stand still in one position, and then if i picked up the paper item after the number count also followed the same logic by standing still in position, i’ve been trying so many ways for the past 2 weeks and it just made things worse, really appreciated if anybody could easily sweep this problem away.

Related screenshots

Here’s the screenshot of the game and the event sheet