User Tag List

Results 1 to 8 of 8

Thread: Is it possible to wait a set time and THEN check for Conditions?

  1. #1
    Clicker Fusion 2.5 (Steam)
    Sai's Avatar
    Join Date
    Feb 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it possible to wait a set time and THEN check for Conditions?

    Hey! I'm trying to write something where if a Condition is met it will wait a couple seconds and then it will check again for another condition and if the condition is met it will do the event I want it to do.

    Sorta like:

    *Value A = 10
    +Wait 3 seconds
    +Value B = 5

    I think I tried this and it didn't work, but I could be wrong. Thanks in advance!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Gradius's Avatar
    Join Date
    Jul 2015
    Posts
    117
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Personally I'd use the 'Function Eggtimer' object for this kind of thing, or just manually make a value that counts up, but the eggtimer is less hassle imo and you can queue events with ease.

  3. #3
    Clicker 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)
    Diogen's Avatar
    Join Date
    Feb 2016
    Location
    Zaporizhzhya, Ukraine
    Posts
    47
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Value A=10
    Activate group AAA

    Group AAA
    Every 3 sec
    +Value B = 5
    .....
    Every 3 sec
    Deactivate Group AAA

  4. #4
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    887
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can simply use another variable the value of which will be increasing after the first condition, e.g:

    Value A = 10 - Set Timer to 1

    Timer=>1 : Timer +1

    Timer>150
    +Value B=5 : Do something

    150 means roughly 3 seconds with 50 FPS

  5. #5
    Clicker Fusion 2.5Android 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)
    AftPeakTank's Avatar
    Join Date
    Apr 2013
    Location
    Greece
    Posts
    375
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    I usually use a combination of flags or a counter that holds the index of the state I am checking.
    For example, a counter named "counter states" with the following indices would be used like this:

    Index
    1 -> first condition
    2 -> second condition (in example after 3 seconds)
    3 -> third condition (in example 3 seconds after the state 2)
    ...


    Then the conditions and events would look like this:

    Conditions Events
    ---------------------------------------------------------------------------------------
    starting condition + counetr state = 0 -> counter state = 1 , Value A =10
    counter state =1 + every 3 sec -> counter state = 2 , Value B =5
    counter state =2 + every 3 sec -> do something
    ...
    ending condition -> counter state = 0

    Instead of a counter you can use a global value, an alterable value or like i said, flags.

    Your choice!

  6. #6
    Clicker Fusion 2.5 Mac
    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)

    Join Date
    Jan 2015
    Location
    Australia
    Posts
    166
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    The standard timer object has a 'fire event after X seconds/minutes' action, which is probably the simplest and quickest way I can think of doing it;
    timedEvent1.png

  7. #7
    Clicker Fusion 2.5 (Steam)
    Sai's Avatar
    Join Date
    Feb 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ended up doing this, thanks!
    edit: idk how to use this forum but I mean to reply to one of the posts, dunno if it worked

  8. #8
    Clicker Fusion 2.5Android 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)
    AftPeakTank's Avatar
    Join Date
    Apr 2013
    Location
    Greece
    Posts
    375
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sai View Post
    I ended up doing this, thanks!
    edit: idk how to use this forum but I mean to reply to one of the posts, dunno if it worked
    You just have to press "reply with quote"... and no... it didn't work lol.

Similar Threads

  1. How to check multiple conditions simultaneously?
    By Janette5 in forum Fusion 2.5
    Replies: 4
    Last Post: 1st March 2015, 06:11 AM
  2. Replies: 1
    Last Post: 28th February 2014, 05:35 PM
  3. Any ways to set an action for Wait a certain time?
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th June 2013, 09:45 PM
  4. Wait X amount of time? and score issues...
    By Shmuper in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 4th April 2010, 10:36 PM
  5. How to wait a certain amount of time?
    By n89 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd January 2008, 08:29 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
  •