User Tag List

Results 1 to 7 of 7

Thread: How to translate framerate to time?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    How to translate framerate to time?

    I usually use the timer to set when stuff should happen. But I want to get used to make it dependent on framerate instead. I am thinking I could make some kind of counter that always adds a number or something and use that as my timer. But how should I do so I can know how much time will pass? Its very easy to calculate like "I want this to happen after 5 seconds". But how do I translate that to framerate instead? I usually have 60 as my fps setting.

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,816
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    FrameRate * seconds, use Function Eggtimer to do it.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SortaCore View Post
    FrameRate * seconds, use Function Eggtimer to do it.
    It must be possible in Flash

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,816
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Function Eggtimer was converted to most platforms, including Flash.

  5. #5
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well if your framerate is 50 then 50 frames will occur per second. If it's 60 then 60 frames per second, and so on.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Oh yes I did not think about FPS, meaning frames per second...:@

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,156
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    But another thing then. When is it preferable to use timers and when is it better to use framebased? First I was thinking that frame based always would be better, but for example if you have music and want stuff to happen in sync with the music then framebased cant work right, because if someone has a slow computer then things will lag after the sound?

Similar Threads

  1. How hard is it to translate an API to mmf?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th November 2013, 05:24 PM
  2. Quick Question about getting accurate time in relation to framerate
    By uncleswell in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 17th January 2013, 06:56 PM
  3. Can someone translate this from the Chinese please
    By wuxuechen in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th August 2007, 09:08 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
  •