- Home /
How do you make a NPC which can be killed / kill?
I'm 14, new to Unity, and need help making an NPC which is capable of killing / being killed. In my current project, your challenge is to kill the enemy NPC before he kills you. How do you give the enemy NPC health? The playable character health? And weapons which can give damage to the object? I would be very grateful of any help given.
Answer by sparkzbarca · Oct 29, 2012 at 10:02 PM
as much as it sucks you'd need to learn the basics of coding first.
You should check out your school and see if they have any programming classes or a computer science club. You could learn the bare basics of coding in like a week but it can be complex to understand things at first and having someone there to explain things in different ways when you dont understand it is nearly mandatory at first.
Once you have the basics of coding and know what classes are and object oriented programming basics we'll be able to help. As it is right now we could only write the code for you.
thanks for infor$$anonymous$$g me. I know that unfortunately, my school doesn't do anything like that, so do you know where I could learn?
you could try
http://www.program$$anonymous$$gvideotutorials.com/csharp/csharp-introduction
or this 40 part series. :P
http://showmedo.com/videotutorials/series?name=7Ja4c8YuL
It's not that easy to learn, its certainly possible for you to do so but you'd have to spend awhile learning it, plenty of 14 year olds have learned on there own however.
Best of luck!! (it wont be done in a day, you could learn a decent start in a hard week)
Your answer
Follow this Question
Related Questions
Simple airplane AI 2 Answers
How to use A* pathfinding for a large map? 2 Answers
Problem with animation script for npc 3 Answers
Scripting an animation for an NPC? 1 Answer
NPC (gameObject) inactive when out of field of view/player not active 1 Answer