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 /
avatar image
0
Question by YikYikHeiHei · Aug 20, 2011 at 07:31 AM · playeraileaderboardracing

How can make rank in racing game?

I went to make a racing game, but I don't know how to make rank in the game, please look picture

alt text

And the GUI will show "3rd"

But I don't know how to detect the player is 3rd

Can anyone help me? Thanks!

Comment
Add comment · Show 2
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 YikYikHeiHei · Aug 21, 2011 at 04:11 AM 0
Share

Please help me...

avatar image Meater6 · Aug 21, 2011 at 05:06 AM 0
Share

Just an idea, never done this before, maybe make empties at every corner and check to see how close every car is to them. You'll have to make it so that once the cars pass one of the empties, you will need to use the next one in line. The car closest to the farthest empty is first and so on. I just got that off the top of my head by the way, so it might not work.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Joshua · Aug 21, 2011 at 05:19 AM

Either use checkpoints or check if they are behind eachother, which means it won't work if you're facing the wrong way.

Comment
Add comment · Show 6 · 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 YikYikHeiHei · Aug 22, 2011 at 12:09 AM 0
Share

But I want to any time to Update the rank...

avatar image Joshua · Aug 22, 2011 at 02:17 AM 0
Share

Then use a lot of waypoints. It's the only way to know if they're further along the track. It may sound inefficient but it's really easy to set up. Write an editor script that shows a little gizmo for every waypoint and a line in between all of them. Then add a button to add a new wp. Add 50-100, place them correctly, and see who is nearest to what is currently the furthers waypoint.

avatar image YikYikHeiHei · Aug 22, 2011 at 02:32 AM 0
Share

But it have not other way to know the rank?

avatar image Suyuanhan · Aug 22, 2011 at 02:43 AM 0
Share

you don't have to Update the rank everytime just check is the variable changed.

avatar image YikYikHeiHei · Aug 22, 2011 at 03:05 AM 0
Share

How to check the variable changed?

Show more comments

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

7 People are following this question.

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

Related Questions

Where to start on AI for Racing games?! 2 Answers

Guides or Tutorials for a Very Basic Enemy AI? [Unity 5] 1 Answer

Enemy detection in the light(Javascript) 1 Answer

A.I - what is better for player checking ? 0 Answers

Tagged Player working on one character but not the other 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