playMaker

Author Topic: Race Timer Motorsport manager style Help please lol  (Read 1362 times)

uk4dee

  • Playmaker Newbie
  • *
  • Posts: 6
Race Timer Motorsport manager style Help please lol
« on: March 02, 2015, 04:09:06 AM »
Hello im currently working on a game like motorsport manager for ios/android

im stuck and have been stuck for ages on the timer aspect of the game
dose any one know how i can do this or point me in the right direction
i have looked all over the net but cannot find anything

what im looking for
i have a distance the car has traveled i just need to sort this into a leader board that updates all the time
with the cars name

eg

car1:10:02
car21:10:50

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Race Timer Motorsport manager style Help please lol
« Reply #1 on: March 02, 2015, 05:35:10 AM »
Hi,

 you can use ArrayMaker for this, coupled with easySave to store data online.

https://hutonggames.fogbugz.com/default.asp?W715

Typically, you'll be using a hashtable, but for the sorting I would suggest you maintain an arrayList of the times, you sort them times, and then you can look up who's time it is and build the leaderboard this way.


 Bye,

 Jean