- Home /
Crafting system
Hello Im looking for someone who is able to help me create a Crafting system for my Survival game. I have the graphical part under controll so what i want to know is how do i make a crafting system, how do i make it work and maybe how do i interact with different items(to move them into the crafting screen etc). Looking foward to your answers.
Answer by timsk · Oct 05, 2011 at 09:47 AM
This isn't a recruitment forum. Also, that is a very broad subject and also will depend on how exactly you want it implemented. You could probably break that down into 4-5 questions.
I was going to post links to inventory systems tutorials and the like, but you have asked for a "crafting system". The main problem with this question is. If you asked 10 people to describe, in detail, a crafting system in a game. You would probably get 10 different replies.
Try to break the task down into smaller sections, and create a "to do list" of sorts. Then work your way through it 1 by 1. This way, you will find yourself coming across specific questions that people here can give more specific answers to.
Okey to clearify:
Im not looking for a person to Join me but to "Help" me as in guide me with information bout how to do what im having problems with.
The kind of crafting system im looking to do is simillar to $$anonymous$$inecraft but not quite that advanced. You are supposed to be able to enter the crafting menu at all times (from your inventory)and abit simillar to the one in Team Fortres 2 where you have 2 boxes and you drop 1 item in each and then get another item. So what im looking for here is some way to apply this to and inventory, to make the items movable and interactable (so that you can drop them in the crafting boxes) and then get something out of it (a third item).
And when it comes to the items you are supposed to be able to pick them up from the ground (interact with them when they drop for various things) and then see them in your Inventory where you then shall be able to craft them (as mentioned above).
These craftable items are supposed to be for example wepons to hunt with, a house to live in and to protect you from wild animals and cooking food to regain energy.
These are the things im looking for to add in my game and i hope that it is clear enought now, if not its just to ask and ill try to clearify more.
I'm afraid the questions you are asking are too high-level! You need to work out exactly how your crafting system will work (interface, what kind of items, inventory system etc.) before we can help you with this. For example, you could ask about how you would make a drag-and-droppable GUI element, or how to set up an inventory system- not questions as complex as this one! As @timsk says, there is no one answer to this question, and nobody here could possibly know as much about what you want as you do.
Seconded. This board is very well-suited to answering specific technical problems, but less so with providing general "how-to"-tutorials. You have to try to imagine what kind of technical things you'd need to build this system, then ask about how to use those. To give you an example:
You're saying "enter the crafting menu at all times". What you should be saying is something like this:
"How do I make 3 buttons with an image each, and when I click one, I select something".
Then we can answer, "You use GUI.Button three times, with three different Rectangle coordinates, see the GUI guide".
Then you come back again and make a new question, which says, "Alright, I've drawn 3 buttons, how do I put them in a window of their own?".
Then we can answer, "You define them in a function, and then you pass that function to GUI.Window".
See what I mean? You gotta get down and dirty with the gritty little low-level things before you request specific help. :)
Answer by Faridox1 · Apr 26, 2013 at 05:44 AM
var Wood : GameObject;
var Iron : GameObject;
function Update () {
if(Wood.name == "Wood"&& Iron.name == "Iron")
{
print("We made a Chest");
}
}
If you want to make it craft you need to create the function of item and crafting table that lets you craft something. Hope this helps.
Your answer
Follow this Question
Related Questions
What is the best method of storing data for a weapons crafting system? 1 Answer
[Answered](C#)Comparing two Lists for a Crafting System 2 Answers
Crafting System Help 2 Answers
Struggling with part of my crafting-algorithm and don't know what my mistake is 1 Answer
Removing child component removes ALL components with that name 1 Answer