User Tag List

Results 1 to 9 of 9

Thread: Is there a time object?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Oct 2010
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a time object?

    I know that there are counters, timers, and the date/time object but none of those can tell you the time outside of the application. As far as I know, they can only store time in-game (like how long the game has run). I was wondering if there were any objects that could find out what time it is from my computer or internet. For instance, right now my computer says it is 1:57 p.m., is there a way for my applications to get that information?

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2007
    Location
    Poland
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a time object?

    You can use an extension Time X. It allows to get computer time.

  3. #3
    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)

    Re: Is there a time object?

    TimeStamp object also allows you to get the current time, and replaces certain characters with seconds, hours etc...
    You could use "%h:%m:%s" and it'll give you hours:minutes:seconds.
    Just if you're in it for the customising
    Both extensions can be found in the second link in my signature!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,704
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a time object?

    The date and time object would probably be better - it's compatible with Java/Flash etc.

    The following expression will display the time (hours:minutes) in a string (the time of the user's computer).
    Code:
    Str$( hours of( "Date & Time" ) )+":"+Str$( minutes of( "Date & Time" ) )

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a time object?

    That will show 2:3 for 2:03 though.

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,241
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Is there a time object?

    The time (from the Date/Time Object) can be compared to a value and 'adjusted' before sending it to a string.

    if minutes < 10
    Set string = $str(hours)+":0"+Str(minutes)

    if minutes => 10
    Set string = $str(hours)+":"+Str(minutes)

    Note: may not be exact expression as I am sitting here without MMF open.
    DT
    Special Projects Director

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a time object?

    Str$ I'd bet. I don't have MMF here either.

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,241
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Is there a time object?

    minutes of( "Date & Time" ) =< 9
    "0"+Str$(minutes of( "Date & Time" ))

    minutes of( "Date & Time" ) > 9
    Str$(minutes of( "Date & Time" ))
    DT
    Special Projects Director

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there a time object?

    Or to eg. 02:03 without conditions:

    Right$("00", 2 - Len(Str$(hours of( "Date & Time" )))) + Str$(hours of( "Date & Time" )) + ":" + Right$("00", 2 - Len(Str$(minutes of( "Date & Time" )))) + Str$(minutes of( "Date & Time" ))

Similar Threads

  1. Date and Time Object
    By animdude in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 17th April 2013, 01:51 AM
  2. Get Object Name at Edit Time?
    By Dines in forum Extension Development
    Replies: 5
    Last Post: 3rd March 2012, 09:14 PM
  3. time trial object bug
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 21st March 2009, 09:36 AM
  4. Create an object after a time
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th April 2007, 12:32 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
  •