User Tag List

Results 1 to 2 of 2

Thread: easy way to convert a single counter into H/M/S

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Apr 2009
    Location
    Florida
    Posts
    153
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    easy way to convert a single counter into H/M/S

    I am using a global value Z and every second i add 1 to it. I then assign that value to counterX
    i want to display a result in Hours/Mins/Secs
    So i am trying to figure out the easiest way..

    Perhaps i need to set up 3 counters, do several divisions and check for a seconds or minute counter greater then 60 then keep dividig it down.. etc. I have checked out the current list of extensions and did not see one specifically for this, but perhaps someone else has already done it and can share it and save me some time.

    thanks
    - Sam

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: easy way to convert a single counter into H/M/S

    Hi Sam.

    In-game Clock:
    You're making a simple overworld exploration game and you would like to give the game its own time. The time will be spread across multiple frames. You also want the time pause during conversations and while the player is in a building. which are also in seperate frames.

    Set up a counter system, one for hours and one for minutes. Keep the values in Global Values so that the counters will keep there values accross the frames. Then set up events in the Event Editor to update the clock every hours and minutes/hours on the frames in which you want time to advance. This gives you your world clock and you can run events from it for different times of day and night.

    From the MMF2 Tech Manual

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Adding Half a Counter's Value to Another Counter
    By soloman in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th June 2010, 10:30 AM
  2. easy math to convert mouse position to frame?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th February 2010, 05:12 AM
  3. Possible to convert to mac
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th October 2008, 02:05 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
  •