slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: racing games Mon Jan 28, 2008 1:41 am | |
| im making a racing game. SNES mario kart styled. does anyone know how to find what place each person is in? like 1st 2nd..... | |
|
stewrat Loyal Poster
Posts : 78 Join date : 2008-01-04
| Subject: Re: racing games Mon Jan 28, 2008 2:02 am | |
| It wouldn't be very good, but here's an idea. You have an object that when the cart object colides with it turns or sets a variable so that the person in first draws "first" then the object changes into another object that when the next cart colides with it that cart draws "second". and so on. It's lame, but it's an idea. | |
|
Guilty Sparks Heavy Poster
Posts : 154 Join date : 2008-01-05 Location : USA East Coast
| Subject: Re: racing games Mon Jan 28, 2008 2:55 am | |
| Or this is also a pretty lame idea, but every time a car passes the finish line, it changes into another obj. Then, on the collision with the finish line code, it counts the number of racer instances. Every time a player goes by, it sees how many obj racers there are and calculates from there | |
|
slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: Re: racing games Mon Jan 28, 2008 4:17 am | |
| i know how to get their position after they cross the finish line, but what about when they pass each other? i'd be in 1st then get passed and i would then have to be second. how do i figure this out? | |
|
Phantom107 Admin
Posts : 206 Join date : 2008-01-03 Location : The Netherlands
| Subject: Re: racing games Mon Jan 28, 2008 3:36 pm | |
| I think the best way to check the positions using a node system. Say you travel from point A to point B. The one in first place will be the one closest to point B. Now when the one in first place had past around the corner of point B and travels to point C, then the one in first place will be the one closest to point C. Get the picture? | |
|
Sponsored content
| Subject: Re: racing games | |
| |
|