Best practices to query an inventory for items and consume items #60
-
Hi! Thanks for this plugin; it's been great and super intuitive so far; I'm building a little game where players can gather resources and build buildings based on the resources they have collected. The way I wanted to proceed was to use a box Inventory to track resources gathered by players and dropped in the box; and then query what resources are currently in the box and delete/consume them before instantiating a new node of the building on the map. There's a couple of questions that arise; I have some ideas on how to go about this but want to make sure I'm following best practices. How would you recommend that I:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello! Sorry for the delay, I hope the questions are still valid
Remember that inventory information must be understood in an abstract way, for example, you could create an inventory to store the information of items that must be required to build. the Inventory node doesn't necessarily need to be used to have concrete items somewhere :) |
Beta Was this translation helpful? Give feedback.
Hello! Sorry for the delay, I hope the questions are still valid
Remember that inventory information must be understood in an abstract way, for example, you could create an inventory to store the information of items that must be required to build. the Inventory node doesn't necessarily need to be used to have concrete items somewhere :)