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.

AppGameKit Classic Chat / need help with position ranking in a driving game

Author
Message
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 18th Mar 2021 09:03 Edited at: 18th Mar 2021 09:05
now i have an array of checkpoints global and positions as part of a vehicle type
and i have a current and next pointervariable to keep track of where you are in relation to the checkpoints
now that part works for laps and the placing of crashed vehicles etc

1>The problem is there is up to a maximum of 9 positions a player can be at any one time which is a different number to the number of checkpoints
the array positions has an array of position textures and im not sure how i can add that to work preferably update at each checkpoint

2> a minor issue is detecting the wrong way at the bottom of function



Thanks for any help anyone can give

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Mar 2021 20:03
What does it show for the position now?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 18th Mar 2021 23:00 Edited at: 18th Mar 2021 23:07
ive got that commented out in the above function because if i make it show the position using the checkpoints it errors
there are more checkpoints than cars/rankings

and im trying to keep the for/next loops minimal

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Mar 2021 00:40
I could take a look at the code if you want
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 19th Mar 2021 13:56 Edited at: 19th Mar 2021 19:48
what i needed was an array of positions where at each chekpoint
but allot more checkpoints, i now use the built in function sort


fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk

Login to post a reply

Server time is: 2024-04-19 14:37:30
Your offset time is: 2024-04-19 14:37:30