User Tag List

Results 1 to 5 of 5

Thread: Set framerate problem!

  1. #1
    No Products Registered

    Join Date
    Feb 2011
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Set framerate problem!

    Hi guys!

    Fairly new to this forum, and MMFD2 in general.

    I'm making a little game here, and when my player-character is his by a watermelon, I want to slow down the framerate to 15 for a few seconds, let's say 3, but then go back to normal. Now, I know how to slow it down, but I have no idea how to make it go back to normal again! I assume it has something to do with a timer, but I don't know how, hoping for some help :-)


  2. #2
    Clicker Fusion 2.5 Developer
    ChrisStreet's Avatar
    Join Date
    Jul 2006
    Location
    United Kingdom
    Posts
    569
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set framerate problem!

    Instead of using a timer, use an active object and its alterable values and flags.

    Quick example off the top of my head:
    -------------------------------------


    Player is hit by watermelon: Set Flag 0 of HiddenActiveObject to ON

    Flag 0 of HiddenActiveObject is ON: Set Frame Rate to 15, Add 1 to Alterable Value A of HiddenActiveObject

    Flag 0 of HiddenActiveObject is ON and
    Alterable Value A of HiddenActiveObject = 300: Set Flag 0 of HiddenActiveObject to OFF, Alterable Value A to 0

    Flag 0 of HiddenActiveObject is OFF and
    Only One Action When Event Loops: Set Frame Rate to whatever it was before.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set framerate problem!

    You don't really need to use a flag. A simpler method would be:

    Code:
    Player hit by watermelon:
          --Set Framerate to 15
          --Set Alterable Value A to 45 (this is 3 seconds)
    
    Alterable Value A > 0:
          --Subtract 1 from Alterable Value A
    
    Alterable Value A = 0
    Only one action when event loops:
          --Set Framerate to 50 (or whichever normal framerate you use)

  4. #4
    Clicker Fusion 2.5 Developer
    ChrisStreet's Avatar
    Join Date
    Jul 2006
    Location
    United Kingdom
    Posts
    569
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set framerate problem!

    That works too

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Set framerate problem!

    Yeah, they're both perfectly good methods.

Similar Threads

  1. Framerate on pc
    By Nellatermica in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2013, 10:06 PM
  2. Strange Change Framerate Problem
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 27th January 2012, 06:12 PM
  3. ios framerate
    By SoftWarewolf in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 28th August 2011, 05:27 PM
  4. How to set up framerate?
    By Hernan in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 21st October 2009, 01:29 AM
  5. Overlay + Scrolling = Strange framerate problem?
    By UltimateWalrus in forum File Archive
    Replies: 8
    Last Post: 6th August 2006, 10: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
  •