User Tag List

Results 1 to 7 of 7

Thread: How to reset a timer?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    How to reset a timer?

    Hey, at the moment i am setting up ai and i have an event that triggers a loop and another event that turns off the loop. On the loop i have "on loop "seen" + Timer equals 5 seconds it will destroy an object. This works but when i turn it on then off then on again it resumes the timer from the last time it was on. How do i make the timer reset every time the loop resumes

  2. #2
    Clicker The Games Factory 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    jobromedia's Avatar
    Join Date
    Feb 2013
    Location
    Stockholm, Sweden
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a variable:


    Code:
    If seen then 
     variable + 1
    
    turning loop on
     if variable <> 0
      variable = 0

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    sorry it just doesn't do anything then, could you explain it more?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    anyone have any ideas?

  5. #5
    Clicker Fusion 2.5
    Bertard's Avatar
    Join Date
    Jan 2014
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it s

    If loop is running
    Choose one objet = destroy it

  6. #6
    Clicker Fusion 2.5
    Bertard's Avatar
    Join Date
    Jan 2014
    Posts
    150
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For timer it s :
    When loop isn ' t running = set timer to 0

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Lukiester's Avatar
    Join Date
    Feb 2014
    Location
    Melbourne
    Posts
    373
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks for the help

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. Timer Example - Countdown And Timer
    By henryhissagames in forum Guides, Tutorials, Examples, Widgets
    Replies: 0
    Last Post: 27th January 2015, 08:45 PM
  3. Modifier le timer au fil du temps / Change the timer over time
    By Nespose in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th March 2014, 05:57 PM
  4. How to reset the Hi-Score ?
    By vesperillo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th October 2007, 06:30 PM
  5. Reset Highscores
    By aaron in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 2nd October 2007, 07:02 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
  •