I think it is super random. There are so many games released on Itch that a lot are completely unnoticed. If I would release GTA 6 now on Itch for free, I would probably get 0 downloads because I have no followers.

Gar Garag
2
Posts
1
Following
A member registered Oct 06, 2024
Recent community posts
itch.io Community » Game Development » General Development · Posted in I need help creating an inventory and equipment system
I don't think you will find someone here, who checks all that code and finds your bug. From quickly scanning over your code I can only give you a general advice:
Try to structure your code better. Do not mix different levels of abstraction in a single function. Your top level functions should have only a few lines of code and should look more like this:
if(inventoryIsOpen())
{
drawInventory()
}
if(mouseSelectionIsRequested())
{
if(nothingIsSelected())
{
selectHoveredItem();
}
else
{
deselectItem();
}
}
When you structure your code like that, bugs like the one you describe will often become obvious.