itch.io is community of indie game creators and players

Devlogs

Having Only One of Each Tool

Just A Simple Farming Game
A downloadable game

Author: Zoleda Davila

Posted on 2/8/2024

A special feature I wanted for the inventory is that the player could only have one of each tool at a time. An issue I was having was even though the limit was one for each tool in the Data Table, when the player was in range to interact with each tool, they could still pick up the tool and put the tool in a different slot. For the way we want our game to function, this is an issue, because we want the inventory to be maximized for the player. In order to do this, I first wanted to edit the Handle Interact function that is in all items that we can interact with. This was not working, because we had to have access to both the player's inventory, how much the item gave you, and the information in the data table. 


Leave a comment