User Tag List

Results 1 to 4 of 4

Thread: Best Way to Pause

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best Way to Pause

    There are times when you want to run condition 1 and then have condition 2 start 1 second later. What is the easiest or best way to do this. I have often used a counter and added one to it every 1/10 a second and then run condition 2 when the counter is 10. But when you have a lot of these, it can get a bit messy. It would be nice to have a way to easily do this.
    Steve

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best Way to Pause

    Try the Function Eggtimer.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Best Way to Pause

    DavidN,

    I took a look at this but do not see how to use it to make a delay of let's say 1 sec.

    STeve

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, ┼rhus
    Posts
    3,455
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)

    Re: Best Way to Pause

    MMF2 runs (by default) 50 "event cycles" pr second.
    That means that you can set Function Eggtimer to run a function after 50 event cycles and it will happen one second later.

    For example:

    - When player dies
    ---> Do function "restart" after 50 event cycles

    - On function "restart"
    ---> Restart frame

    ..which gives you a 1 second pause.

    If you changed your framerate from 50 to something else (like 60) then you just make Function Eggtimer wait 60 event cycles instead Simple isn't it?

Similar Threads

  1. Replies: 10
    Last Post: 15th October 2012, 04:33 PM
  2. Help with pause.
    By Martin in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 15th March 2012, 12:54 PM
  3. Need a better way to pause...
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 15th October 2010, 11:20 AM
  4. PAUSE?
    By scurvy in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 30th May 2009, 07:51 PM
  5. Pause
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 24th July 2008, 08:11 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
  •