User Tag List

Results 1 to 8 of 8

Thread: how to make my timer reset rather than keep adding up? (every 10,000 + random(10,000)

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)SWF Export Module (Steam)

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make my timer reset rather than keep adding up? (every 10,000 + random(10,000)

    Hello! I am making a video game where when a certain thing is happening, every 10,000 + random(10,000), a monster will be released.
    But I do not want this to keep counting up. I will block the monster once, and then the next time it completely gets released and kills me before I even have a chance,
    because the counter stayed from the last time when I stopped it from getting out.

    For example, the monster will be released in 10 seconds if I do not stop it.
    I stop it in 9 seconds, which makes it so it will be released in just 1 second next time it tries,
    how do I make this event start over fresh from 0?

    Thank you!

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export Module
    jimicliche's Avatar
    Join Date
    Jan 2015
    Location
    Granby, Québec
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to make an event when you kill a monster, or use a loop.

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export Module

    Join Date
    Sep 2006
    Posts
    565
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make it so when the monster is stopped the counter is set to 0 as a 1 time event under special--limit conditions--run this event once

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,854
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I would use a value or a counter. Have the value count up every 1 second. When the value reaches 10,..release monster. If you stop the event from happening under 10 seconds, just reset the value to zero again and it will start over. There are a few other events you'll need, but here is an example that explains it. I used a counter.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)SWF Export Module (Steam)

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The timers go far beyond the monster simply being released though. The monster has stages.

    -Gone
    -Inside Coset
    -Inside Room
    and then various timing to make it walk throughout the house at a random pace.
    With all these timers I'm just hoping for a way to make all of them reset each time rather than keep running.

  6. #6
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)SWF Export Module (Steam)

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have been considering the use of a counter, but I am trying not to fall back to that unless absolutely necessary. I'm talking about multiple monsters with lots of different timers,
    similar to Five Nights At Freddy's, and it would take me a lot of time to work everything from the ground up again.

  7. #7
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)SWF Export Module (Steam)

    Join Date
    Nov 2014
    Location
    Ohio
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you! I finally took the time to rework the entire system using counters and it works spot on!
    It only took 20-30 minutes, and it'll definitely help me as I continue development, thanks!

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use the alterable value of an Active object, then each monster can have their own timer built into their actives.

Similar Threads

  1. How to reset a timer?
    By Lukiester in forum Fusion 2.5
    Replies: 6
    Last Post: 1st August 2015, 11:33 AM
  2. Random animation with timer?
    By Zambaku in forum Fusion 2.5
    Replies: 1
    Last Post: 6th August 2014, 08:15 PM
  3. Button to make an action and then reset
    By Nellatermica in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 11th May 2013, 07:33 PM
  4. Adding a timer to stages
    By Teh_Purple_d00d in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th September 2011, 06:06 PM
  5. Random timer
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 15th May 2008, 07:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •