Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Racing Positions

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 2nd Apr 2004 12:00
How can you tell which car is in which position when the race track curves?
If the track was straight it would be easy.

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
Magpie
21
Years of Service
User Offline
Joined: 16th Jul 2003
Location: Otherland! Cos it rocks!
Posted: 2nd Apr 2004 12:32
Hmmmmm...
Not sure I've ever encountered this. Yes it would be easier if it were straight. I know I've played at least one other racing game in DB. But it didn't have any ranking system (or indeed a way to finish the race other than exiting) you just went round and round.

The only way I can think of it to have some "zones" where it senses which cars are in them and has a little array to show which zones are further up the track than the others. The more zones and the smaller they are, the more accurate the ranking system will be, but the slower the prog will be in the end. this could be quite tricky.

Is this in DBC?

Dead against necromancy...
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Apr 2004 12:52
Using waypoints, you can measure how close each car is to the next waypoint. You then simply use more waypoints around bends where necessary.

BatVink (formerly StevieVee)
http://facepaint.me.uk/catalog/default.php
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 2nd Apr 2004 14:38
For KrazyKarts I placed a number of hotspots around each corner which each car would randomly choose one to aim for. It then gave the racers and intelligent racing look. You can then do a check to see who is there first and then number them accordingly. I'll find out the source to that one day and release it

Level Maker 3D: www.levelmaker3d.co.uk/levelmaker3D.asp
DarkBasic Professional Editor: www.levelmaker3d.co.uk/ide.asp
also: www.levelmaker3d.co.uk/KrazyKarts/ & www.DigitalOmega.Net

Login to post a reply

Server time is: 2025-05-24 05:34:02
Your offset time is: 2025-05-24 05:34:02