User Tag List

Results 1 to 5 of 5

Thread: Delaying events?

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delaying events?

    What's the easiest way to delay an event for X amount of time?

    Random example; when Active1 collides with Active2, 5 seconds later the game ends.

    I'm currently using the help of values which degrade over time, but I'm starting to have a very inconvenient amount of "delayer" and "trigger" counters so I'd like to know if there's a better way to do it.

    I need these for various reasons, but the main reason seems to be that the system takes in multiple events at a single button press.
    For example, these two events would happen at a single push of space bar:
    -GV1 = 1
    -Upon pressing Space
    :Set GV1 to 2
    -GV1 = 2
    -Upon pressing space
    :Set GV1 to 3
    Note though that those actually don't happen at once but it happens sometimes with other events. Also I have other uses for delays too.

  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)

    Re: Delaying events?

    MMF2's "Restrict Actions" event can be used for exact times, but there are other alternatives (such as the WaitFor object) if you need to to it by number of frames.

    For the Restrict Actions method to work, you need to take into account that it will trigger the first time and then wait the time you specify before running again. It's similar to a cooldown for guns almost. You could utilize this behavior to end the game on the second trigger.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Tsun's Avatar
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delaying events?

    Ahh I looked for something everywhere but I didn't think it could be in the conditions. It's not exactly what I need but it should still be a huge help, I'll check the WaitFor object too.
    Thanks.

  4. #4
    No Products Registered

    Join Date
    Jun 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delaying events?

    Not sure if this will be of any help: There are two extensions: One is called Time X and the other Timer Object. I know TimeX can handle any number of timers and control them individually or even pause them.
    I haven't really tried any of them; since triggered counters is fine for the limited things I do on MMF. :-)

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

    Re: Delaying events?

    There's also the Function Egg Timer
    Working as fast as I can on Fusion 3

Similar Threads

  1. Performance of behavior events vs frame events
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th July 2013, 05:24 AM
  2. Delaying a player from spawing immediately
    By jbrown2177 in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 15th August 2012, 08:40 PM
  3. Application is delaying to start.
    By Nyc in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 11th June 2011, 03:36 PM
  4. Group of events & global events - performance?
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 9th June 2010, 03:00 PM
  5. delaying the next event
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 25th September 2007, 05:37 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
  •