Inventory and crafting
So I'm making a survival game, but I'm stuck with the inventory and crafting system. I've made the inventory system by following this tutorial:
https://www.youtube.com/watch?v=D5WEwG4L5HQ
I want to create a crafting system, but I'm out of ideas. Any ideas on how to make a crafting system, using this inventory system, or maybe a new and simple inventory system, in order to make the crafting system?? :D
Answer by Dibbie · Jan 15, 2016 at 04:28 PM
Im not sure how that system works, but in theory, a simpler method might be:
Create an array of gameobjects Get a gameObject thats actually just a panel with a image component attached to it, to store the visual of the item Display these items in a certain order, however you choose, 4 x 4, 5 x 5, 9 x 2, whatever...
Then, have a "Crafting" or Formula Sheet" with your inventory, so when certain items are combined, it checks if its a real "craft" that exists.
For example, in your "Formula sheet", 10 steel + 4 iron + 1 magic rod = Enchanted Sword, so if they only have 9 steel and try to craft something, the result is nothing, unless you have something to compensate for 9 steel as well.
Another way you could do it is, check both items. For example, if its steel + iron, its a sword, if its iron + tree bark, its a staff, and so on.
Theres 101 ways you can approach it, I guess it all really depends on exactly what your planning to do, how YOU specifically want both your inventory and crafting system to work. You can even go really advanced to the point that items have "quality" to them, and "durability", and a chance of being destroyed in the process, and so on.
First of all, thank you for your answer.
now, I was thinking a crafting system, where I have a list of things I can craft, and if I have the required items, I can craft it by clicking it. But, in order to do that, I would have to have the crafting system and the inventory working together. And I'm just not sure how to do that.
Your answer
Follow this Question
Related Questions
Inventory Add Item error 2 Answers
Help with crafting system similar to terraria 0 Answers
2d mobile Multi Scene inventory 0 Answers
Inventory help. 0 Answers