Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by The-Aidency · May 06, 2014 at 08:55 AM · javascripteditorpositionprogramming

Too many bugs

I don't know how, but there's just too many bugs in my game!!! Placement.

When I place my player at end of the level, it is at the start, When I place it at the start, It enters the void(as in minecraft).

  • Collision. It enters the model, even though it has a collder. pic:Collider
  • Health, Energy and Confidence.

    It end game when energy = 0, but not when confidence/health = 0. Code:

     function HealthConfidenceNRG(){
     Energy -= EnergyLoss;
     if (Energy == 0 || Health == 0 || Confidence == 0)
     {
     Time.timeScale = 0;
     LostTheGame = true;}
     }
     //variables are define, just I dont want to show. type is proper.
    
    
    

    also note the alternative i use earlier

     unction HealthConfidenceNRG(){
     Energy -= EnergyLoss;
     if (Energy == -1)
     {
     Time.timeScale = 0;
     LostTheGame = true;}
     Debug.Log("Energy reduced to" + Energy);
     if(Health == 0)
     {
     Time.timeScale = 0;
     LostTheGame = true;}
     if(Confidence == 0)
     {
     Time.timeScale = 0;
     LostTheGame = true;}
     }
    
     
    

    Thank you in advance

    untitled.gif (153.0 kB)
    Comment
    Add comment
    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

    1 Reply

    · Add your reply
    • Sort: 
    avatar image
    0
    Best Answer

    Answer by Cherno · May 06, 2014 at 09:42 AM

    1. What does "Start" and "End" of your level mean? What kind of controller are you using? If you place the First-Person Controller somewhere in your level, this is where you will start.

    2. Again, it depends on what controller you are using. The FPC won't move through colliders if using physics for movement (AddForce and such).

    3. Try ...

    4. It's better to ask seperate questions for seperate issues.

    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 The-Aidency · May 07, 2014 at 02:51 AM 0
    Share

    okay, here are my answers to your questions.

  • start means the starting or spawning point of the player, and end is the last obstacle with the ladder, i.e the building. $$anonymous$$y goal in the game would be to reach there.
  • No, im not using fpc; Im using boxcollider with rigidbody. $$anonymous$$y game is something like this.
  • Fine, I'll try that.
  • And okay, will take care of that next time. I put it in one question as all of this happend just after adding models. But I dont understand, that even if the street was a model, why did'nt it go through it, even with a meshcollider?

    Your answer

    Hint: You can notify a user about this post by typing @username

    Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

    Follow this Question

    Answers Answers and Comments

    20 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

    Related Questions

    Multiple Cars not working 1 Answer

    How to tell if two objects are right next to each other in a 2d game? 2 Answers

    How to tell if an object is right next to another? 2 Answers

    Need Help Programming... Please Help! Thanks :) 1 Answer

    Controller work differently with same code and objects, but in different position 1 Answer


    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