Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by jcl. 09/29/26 09:37
A3 projects
by Yopachi. 09/28/26 17:04
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 3,952 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tb58k1ln, KelleyAbbey, Yopachi, Knull, Opus
19243 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