I don't feel like keeping track of this
Issues using two scripts.
I'm having a super difficult time with some scripting I'm attempting to do.
I'm "re-skinning" the Unity's Nightmares game using a car instead of a person. I changed the steering to use the new vehicle functionality scripts that came with Unity 5, and up until now everything had worked fine.
However, now that I try to add the PlayerHealth script, it has no effect. I thought that maybe PlayerHealth wasn't working because it was trying to access PlayerMovement. So I changed PlayerHealth to be accessing the CarController script. Of course then I ran into dozens of various namespace issues.
When I finally resolved all the namespace issues...I had no errors, but it STILL didn't work.
Does anyone have any ideas?
I'm pretty much a complete newbie to doing any sort of scripting in Unity (or anything with Unity for that matter), so please explain answers and bear with the slow brain on my end :P
the problem with your question is that people would have to go and find the project, try what you tried EXACTLY and then work out a solution for you, you really need to look up some tutorials on unity (there are hundreds of good ones)
The way i learned was to think of a small idea, code that up and then move on to another, from there you can build knowledge, improve the efficiency of your coding, and get yourself into a position where you are asking questions to help you move through a tricky part of a project, rather than asking for help at the very beginning, which is going to greatly hamper your progress.
Good luck :)
Answer by Cal2 · Oct 09, 2015 at 02:19 AM
are you a newbie to coding as well or just Unity? I haven't used the project you are talking about, but I would assume that not using the playerMovement script is what is breaking it. As even though you can get rid of errors from showing in the console stuff still might not work how you are intending.
Lol, unfortunately @Cal2 I'm a newbie to both. :P And yes I've figured out since posting this comment: that the enemy will not even work without the Player$$anonymous$$ovement script on the player.