User Tag List

Results 1 to 6 of 6

Thread: Creating a scoreboard of fastest times

  1. #1
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating a scoreboard of fastest times

    Greetings,

    I am trying to create a scoreboard frame that displays the fastest time for each level across all players.. When a player completes a level, I subtract the countdown time from the original time allotted. This gives me the elapsed time for that player for that level.

    Here's where I need help:

    I want to be able to compare that time with the current fastest time for that level from the scoreboard. If the new time is faster, I want that time to be posted on the scoreboard as the fastest time for that level.

    I thought that an ini file would work for me but I haven't been able to resolve the logic. I've tried lots of different approaches, but can't seem to get the desired results.

    I currently use globals to save all important info. However,I have not been able to use globals to populate the scoreboard because each player starts out with a clean slate of global values. The scoreboard must be separate from that system. That's why I thought an ini file would be a good choice.

    I would welcome any helpful suggestions.

    Thanks.

  2. #2
    Clicker iOS Export ModuleSWF Export Module

    Join Date
    Feb 2008
    Location
    Australia
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a scoreboard of fastest times

    Use score, set the "time" they had left as their score and simply use the built in Highscore object.

    I have no idea if that helped. Probably not.

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a scoreboard of fastest times

    To convert a time to a score, you simply

    Set score to
    Seconds + minutes x 60 + Hours x 60 x 60

    And reverse to get the time of a score.

  4. #4
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a scoreboard of fastest times

    I'm not having trouble with converting a time to a score.
    I am having trouble saving and loading them and having a way to know when a fastest time has been achieved in real time.

    I don't know how to use the Highscore object to show only the fastest time for each level. The Highscore object will show all the times for one level. Also I don't know how to make the Highscore object read the fastest (lowest score) as the top score, not the worst score. If I can figure out how to do that, then I still need a Highscore object for each level. I would prefer to have one scoreboard that just shows the single fastest time for each level.


  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a scoreboard of fastest times

    To get the highest score, do a loop, loop through all the scores and make it figure out the highest by

    on loop "hai"
    if score loopindex("hai") is higher than VALUE
    set VALUE to score loopindex("hai")

  6. #6
    Clicker Multimedia Fusion 2 Developer
    stillhawk's Avatar
    Join Date
    Jun 2007
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating a scoreboard of fastest times

    Thanks MechaBrowser.
    I gather that your looped approach will allow me to reverse the order of times so that the top of the list will show the lowest time.

    But I'm still stuck with one Highscore list for one level.
    I don't see how to get the fastest time for each level in one scoreboard.

    Also, I can't figure out how to check to see if a player's time for a level is the fastest time.

    Still, I appreciate the help.

Similar Threads

  1. Fastest way to compare values?
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 13th December 2013, 03:51 PM
  2. Highscore, sort by fastest time
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th November 2010, 06:20 PM
  3. Fastest way to draw a triangle?
    By SEELE in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th October 2008, 04:02 PM
  4. Fastest way to execute events on demand?
    By maVado in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th January 2008, 02:21 AM
  5. Fastest way to load object data from ini?
    By teddyq in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th December 2007, 06:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •