User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Making a timer with 0.00

  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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Making a timer with 0.00

    I am making a timer that is in the 0 . 00 format. So every .100 it should add 1 second.

    I dont get whole seconds with using the inbuilt timer to add one second every 100/100. I can get it by adding one second of every 60/100 but then I dont get the counter to get the whole way to 0.100. Can i translate this somehow, or am I missing something?

  2. #2
    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)
    try the expression:
    Str$(timer/1000)+"."+Str$(timer mod 1000)
    I just tried it and it worked, it may need a bit of adjusting to fill 0s on the left, though.
    Working as fast as I can on Fusion 3

  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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LB View Post
    try the expression:
    Str$(timer/1000)+"."+Str$(timer mod 1000)
    I just tried it and it worked, it may need a bit of adjusting to fill 0s on the left, though.
    Where do I put this? I am not to good with these expressions yet. Is the "timer" and the "timer mod" alterable values? because so far I am only using the inbult Timer for this.

  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)
    You would set an alterable string to that expression. "timer" is an inbuilt variable of MMF2, and "mod" is the modulus command, which performs remainder of division. It is the % sign in most programming languages.
    Working as fast as I can on Fusion 3

  5. #5
    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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LB View Post
    You would set an alterable string to that expression. "timer" is an inbuilt variable of MMF2, and "mod" is the modulus command, which performs remainder of division. It is the % sign in most programming languages.
    Can you make an example of this?

  6. #6
    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)
    .
    Attached files Attached files

  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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Thanks for example LB but how do I transfer a string "value" to a counter?

  8. #8
    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)
    LOL! That's much simpler:
    Attached files Attached files
    Working as fast as I can on Fusion 3

  9. #9
    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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ah thanks!

  10. #10
    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,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Also is it possible to do a counter that also transforms these seconds to minutes? So when the counter is 60.00 it goes to 1.00.00 (1min.00.00) ? Or do I have to use two counters and add 1 to the second one and reset the other one when it reaces 60.00?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How do you Create a Global Timer as a Countdown Timer
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 23rd February 2017, 10:08 AM
  2. set timer
    By jaaj302005 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd November 2011, 10:39 PM
  3. timer
    By jaaj302005 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th October 2011, 11:52 PM
  4. Timer.
    By weka in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th May 2009, 01:30 AM
  5. Timer bar
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 10
    Last Post: 22nd May 2007, 12:42 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
  •