User Tag List

Results 1 to 7 of 7

Thread: Recording minutes and seconds

  1. #1
    Clicker Fusion 2.5

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Recording minutes and seconds

    I need some help with a timer. In my game, I have multiple mini-games with a "best time" record keeper. This is easy enough for me to do when it comes to seconds, but I think that just recording seconds would be tacky and absurd. However, with minutes, it is a *major* pain to program. I was hoping that someone could help me find a solution or a workaround to this, because even though I believe I've mastered a good deal of MMF2 (my game is intensely complicated with many replayability features), this is the one place where I believe I need all the help I can possibly get.

    Also, as I've made this post, does anyone else have choppy framerate when running games in Windows 7? I don't get choppiness if I have Aero Glass turned off, but what's strange is that when I ran games on Vista (also with Aero Glass turned on), I've never had these issues.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    Recording only seconds underneath will make things a lot easier for you, but you can display these seconds by dividing them up into minutes and seconds. With a counter called "seconds" as the total number of seconds, you could set a String's alterable string to:

    Str$(floor(value("seconds")/60)) + ":" + Str$(value("seconds") mod 60)

    This is from memory, so it may need some adjustment... this expression displays the result of dividing the total time by 60 on the left of the : (rounding any remainder down), and the right hand side displays the remainder when the time is divided by 60.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    Or...

    Str$(minutes)+":"+Right$("0"+Str$(seconds), 2)

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    RickyRombo, he's not keeping track of minutes, only seconds, so it adds up to over 60 seconds and keeps going.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    Quote Originally Posted by AndyCapple123
    I need some help with a timer. In my game, I have multiple mini-games with a "best time" record keeper. This is easy enough for me to do when it comes to seconds, but I think that just recording seconds would be tacky and absurd.
    I actually skimmed this and missed most of the information, but saw DavidN's solution and offered mine.

    I was assuming he could use the inbuilt timer, and I seem to be mistaking

  6. #6
    Clicker Fusion 2.5

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    I also need to ask again before this gets lost...for anyone running MMF2 or MMF2 games/apps on Windows 7, does anyone have jerky framerate? I run games with Aero Glass turned on and get noticeably jerky animations and scrolling, but with it off, it's smooth like it should be. However, I've never had this problem even with Vista on my older laptop, so that's what has me wondering.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    turtle's Avatar
    Join Date
    Jun 2010
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording minutes and seconds

    I am running Windows 7 Ultimate with Aero turned on. So far seems ok.

Similar Threads

  1. Ten Minutes To Christmas
    By scottige in forum Android Released Games & Apps
    Replies: 3
    Last Post: 2nd April 2013, 09:46 PM
  2. Mili seconds = seconds ?
    By Johnny in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th November 2009, 07:30 PM
  3. Get Duration in Minutes; Seconds?
    By Jesse in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 30th January 2008, 06:47 PM
  4. Seconds to Days, Hours, Minutes and seconds
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st April 2007, 07:30 PM

Posting Permissions

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