Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Any guides on coding player car race position #223438
08/24/08 08:54
08/24/08 08:54
Joined: Jun 2008
Posts: 5
C
calz054 Offline OP
Newbie
calz054  Offline OP
Newbie
C

Joined: Jun 2008
Posts: 5
Hi, do anybody has any guides or tutorials on how to go about coding a player car positioning in a the race? Player's car current standing in a race with many AI cars.

Re: Any guides on coding player car race position [Re: calz054] #223447
08/24/08 10:37
08/24/08 10:37

M
mercuryus
Unregistered
mercuryus
Unregistered
M



place some (invisible/passable) checkpoints (path?) on the track.
Get the last passed checkpoint for each car.
Each position can be calculated by:

* round
* last passed checkpoint
* distance to last passed chackpoint

(the more checkpoints the more accurate is the calculatiuon)

mercuryus



Re: Any guides on coding player car race position [Re: ] #223491
08/24/08 16:29
08/24/08 16:29
Joined: Mar 2008
Posts: 67
crumply Offline
Junior Member
crumply  Offline
Junior Member

Joined: Mar 2008
Posts: 67
If you just drew that diagram to help explain you are a v helpful member of this forum smile

Re: Any guides on coding player car race position [Re: ] #223500
08/24/08 17:26
08/24/08 17:26
Joined: Jun 2008
Posts: 5
C
calz054 Offline OP
Newbie
calz054  Offline OP
Newbie
C

Joined: Jun 2008
Posts: 5
Thanks a lot mercuryus, I managed to get the logic and it seems like the more AI cars I have, the more conditions and checking i need to consider to get the player's position. I am now trying to code the whole thing and it was really a pain. crazy


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1