Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Oct 09, 2015 at 01:01 PM by sam1689 for the following reason:

I don't feel like keeping track of this

avatar image
0
Question by sam1689 · Oct 09, 2015 at 01:32 AM · c#scripting problemscripting beginnerbeginner

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

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bubzy · Oct 09, 2015 at 07:21 AM 0
Share

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 :)

1 Reply

  • Sort: 
avatar image
0

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sam1689 · Oct 09, 2015 at 11:19 AM 0
Share

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.

Follow this Question

Answers Answers and Comments

33 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Accessing string from other script 1 Answer

How can i place subjects in different positions? 0 Answers

How to display random questions without repeating the previous? 2 Answers

arrow from text to object - complete beginner 0 Answers

Tetxure swap using HTC controllers 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges