User Tag List

Results 1 to 4 of 4

Thread: [REQ] Compare time elapsed function

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [REQ] Compare time elapsed function

    Hi, I was just wondering if it was possible to include a compare time elapsed between dates as a function of the iOS object? It would be quite handy for creating timers in games that also need to be counting down even when the user has closed the app.

    I've read up about it and it seems iOS has a class called NSDate that accomplishes this. http://developer.apple.com/library/m.../occ/cl/NSDate Probably more specifically the function timeIntervalSinceDate

    I have also tried messing around with the Date/Time object that is already in MMF but it doesn't seem to have the functions that allow me to do this

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guess not

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    I'm not sure how easy it is for you to work with for specific things like dates, but this can get UNIX timestamps:
    http://community.clickteam.com/showthread.php?t=72647

    A timestamp is an absolute measure in time (seconds) regardless of timezone and all that. To be used for anything useful it has to be converted into an actual date taking time zones, daylight saving, leap years and leap seconds into consideration.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh! I didn't know this extension existed! Thanks for the heads up, i'll have a look at it

    Edit: Blah, the link seems to be down anyone got a link handy for the iOS Unix Timestamp extension?

Similar Threads

  1. Function Eggtimer problem // Power Function for MMF2 Android?
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 03:17 AM
  2. Time elapsed
    By RhysD in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 2nd May 2012, 11:12 AM
  3. 'Compare to one of the alterable values' VS 'Compare two general values'
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st January 2012, 06:26 PM
  4. Make a time machine run with lower time complexity
    By Pixelthief in forum Multimedia Fusion 2 - Technical Support
    Replies: 48
    Last Post: 12th March 2009, 10:10 PM
  5. Compare to Time?
    By Jdsfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 16th April 2007, 09:19 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
  •