User Tag List

Results 1 to 5 of 5

Thread: Problem with switching b/w animations w/ buttons

  1. #1
    No Products Registered

    Join Date
    Mar 2008
    Location
    New Jersey, US
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with switching b/w animations w/ buttons

    Hello. First let me start off by describing what I am doing.

    In my program, I have two buttons: A button labelled next and a button labelled previous.
    3 animations are used:
    I'll refer to them as 1, 2, and 3. All of them have the loop option clicked.

    Here's what I have my program doing (or want it to do).
    Animation 1 is playing and the user clicks on the next button, Animation 2 plays.
    Animation 2 is playing, presses next, Animation 3 plays.
    Animation 3 is playing and the user clicks on the next button, the animation switches to Animation 1.
    Animation 1 is playing and the user clicks on the previous button, Animation 3 plays.
    Animation 3 is playing and the user clicks on the previous button, Animation 2 plays.
    Animation 2 is playing and the user clicks on the previous button, Animation 1 plays.

    Now here's what's happening here:
    Starting off with Animation 1, when I click next, it just stays at Animation 1.
    When I press previous though, it changes to Animation 2.
    Clicking previous again takes me back to Animation 1.
    Also when I pressed next while Animation 2 is playing, it also takes me to Animation 1.

    So I'm stuck with this dillemma of trying to have the program switch between animations with the use of buttons and it's just not working properly, but I need it to work for the project I'm working on.

    My apologies for the post for being long, but I felt that I should be detailed as possible and give the basic idea of what I'm doing.
    If anyone could give me advice to fix this problem, I'd greatly appreciate it. Or if there is anything that would produce the same effect also, that would great as well. Thanks in advance.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    ZayLong's Avatar
    Join Date
    Jun 2008
    Location
    USA
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with switching b/w animations w/ buttons

    try run loop one time.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with switching b/w animations w/ buttons

    It might be helpful to post your file so we can take a look.

    But here is a method I use and it works for me:

    Set up your buttons so that "Next" adds 1 to a global alterable variable (let's call it "ButtonState") and "Previous" subtracts 1 from that same alterable variable (ButtonState). Now set up some conditions:
    -ButtonState = 0
    -->Change Animation to "Anim1" (or whatever your first animation is called)
    -ButtonState = 1
    -->Change Animation to "Anim2"
    -ButtonState = 2
    -->Change Animation to "Anim3"

    You will also need to add the following for your "wrap around" functionality:
    -ButtonState < 0
    -->Set ButtonState to 2
    -ButtonState > 2
    -->Set ButtonState to 0

    You might need to add the following to the "Change Animation" actions if the animations don't reset themselves (sorry, I haven't tested this):

    -->Force Animation Frame
    -->Restore Animation Frame to 0

    Hope that helps,

    Mobichan

  4. #4
    No Products Registered

    Join Date
    Mar 2008
    Location
    New Jersey, US
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with switching b/w animations w/ buttons

    Thanks mobichan! Your suggestion worked perfectly! I just got it working.

    Quote Originally Posted by ZayLong
    try run loop one time
    I tried that before with a couple of other options, but that didn't seem to work. Although I have used it before for other things though.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with switching b/w animations w/ buttons

    Glad I could help. ^_^

    Mobichan

Similar Threads

  1. BUTTONS AS MAP - PROBLEM
    By hcem in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th April 2013, 04:49 PM
  2. Movement switching problem
    By Gimbabwe in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd March 2013, 04:47 PM
  3. [Bug] Buttons gets wrong position when switching frame
    By Popcorn in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 17th November 2011, 05:53 PM
  4. Little problem with animations
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th June 2009, 01:24 AM
  5. Fullscreen Mode switching problem
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd December 2008, 12:48 AM

Posting Permissions

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