Questions tagged [inventory]
The inventory tag has no summary.
58 questions
1 vote
0 answers
47 views
Database or arrays
Generally for an RPG, would you say a DB like SQL server and MYSQL is over kill? RDB seems really convenient to pull and call from an inventory item for example, yet I see arguments that it is too ...
0 votes
1 answer
98 views
To fix an item duplication glitch, I created an item deletion glitch
The item type is based on button.icon.texture The item quantity is based on button.quantity If item quantity reaches 0, the <...
0 votes
0 answers
77 views
GameObject optimization in backpack behavior
I am trying to design the item part of my game. My original design was just to treat them as a gameobject and to give every item an item (or some derived) component,...
0 votes
1 answer
204 views
How to interact with inventory only and not the game
I have created an inventory in which you can select some objects that you can spawn. This is a button in a table in a inventory class. Spawning is done via left mouse button (just click on some ...
0 votes
1 answer
151 views
Timing User Inputs for Inventory on 60UPS game loop
I'm making an inventory system for my pure Java game right now. Currently, the game runs at a 60UPS, and inputs are checked each update. I have inputs set up using arrays of the current update and ...
1 vote
1 answer
1k views
Method subscribed to an event is called twice for every time the event is raised [closed]
I am trying to make an inventory system in Unity with ScriptableObjects and a text driver that displays the contents of an inventory. So far the code looks like this: -An InventoryObject is defined as ...
0 votes
1 answer
429 views
Inserting into the first available inventory slot
Hello my inventory system picks up one item but does not pickup any more to fill the other two slots. It is saying the whole inventory is full when it should be one slot is full. Here is my code for ...
0 votes
1 answer
277 views
Trouble with Inventory System and Item References
I'm currently trying to get a simple inventory system to work but I'm having a lot of trouble. This isn't the exact code I have, but it's a shorter version that I'm pretty sure would function the ...