User Tag List

Results 1 to 5 of 5

Thread: Help! Animation not playing.

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Oct 2021
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! Animation not playing.

    Here's my "water changes animation direction according to wind"-code
    For some reason, everything calculates correctly, but once the new animation has been triggered; the "always set speed"-event seems to stop functioning.
    In other words, values change as I would expect, and animation changes correctly according to debugger. But it then fails to gain any speed, even though it's an always function that dictates the speed.
    And no, I did not forget to turn looping animations on in animation editor.


    ----------------------------------------------------------------------------

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Current Animation to -1

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Western Wind is on
    River Deep Small : Set Current Animation to 1

    * Current Animation of River Deep Small = -1
    River Deep Small : Change animation sequence to Eastern Wind

    * Current Animation of River Deep Small = 1
    River Deep Small : Change animation sequence to Western Wind

    // Engine

    * Always
    River Deep Small : Set Animation memory to Image( "River Deep Small" )
    River Deep Small : Change speed of animation to Animation Spd( "River Deep Small" )

    // Wind direction

    * Wind Amount > 0
    River Deep Small : Set Western Wind on
    River Deep Small : Set Eastern Wind off

    * Wind Amount < 0
    River Deep Small : Set Eastern Wind on
    River Deep Small : Set Western Wind off

    // Change diretion states

    * Current Animation of River Deep Small = -1
    + River Deep Small: Western Wind is on
    River Deep Small : Set Change direction on

    * Current Animation of River Deep Small = 1
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Change direction on

    * Current Animation of River Deep Small = -1
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Change direction off

    * Current Animation of River Deep Small = 1
    + River Deep Small: Western Wind is on
    River Deep Small : Set Change direction off

    // Select new wind direction

    // Set new animation to maximum (or minimum) +/- current frame value to sync up frames on animation change

    * Current Animation of River Deep Small = -1
    + Animation Spd of River Deep Small = 0
    + River Deep Small: Western Wind is on
    River Deep Small : Set Current Animation to 1
    River Deep Small : Force animation frame to 63 - Animation memory( "River Deep Small" )

    * Current Animation of River Deep Small = 1
    + Animation Spd of River Deep Small = 0
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Current Animation to -1
    River Deep Small : Force animation frame to 0 + Animation memory( "River Deep Small" )

    // Force change direction

    * River Deep Small: Change direction is on
    + Every 00''-20
    River Deep Small : Add -1 to Animation Spd

    // Animation Speed

    * River Deep Small: Change direction is off
    + Animation Spd of River Deep Small < Abs(Wind Amount)
    + Every Round(500 - Abs(Wind Amount * 10))
    River Deep Small : Add 1 to Animation Spd

    * River Deep Small: Change direction is off
    + Animation Spd of River Deep Small > Abs(Wind Amount)
    + Every Round(( 500 - Abs(Wind Amount * 10) ) * 3)
    River Deep Small : Add -1 to Animation Spd

    * Animation Spd of River Deep Small < 0
    River Deep Small : Set Animation Spd to 0

    * Animation Spd of River Deep Small > 50
    River Deep Small : Set Animation Spd to 50







    Thank you again!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,190
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    It's very difficult to understand your code because I do not know what are values, what are flags and what are Fusion built-in animation speeds.

    You would get help more easier if you recreated this in a .mfa file and uploaded that. It's easier (and more fun) for people to play around with a .mfa then to try and understand a long list of code.

    The only issue I can offhand see is that these lines will continuously reset your animation if the conditions are true, because they each time set the Current Animation to 1 or -1, and that calls the animation sequence, which will restart it.

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Current Animation to -1

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Western Wind is on
    River Deep Small : Set Current Animation to 1

    * Current Animation of River Deep Small = -1
    River Deep Small : Change animation sequence to Eastern Wind

    * Current Animation of River Deep Small = 1
    River Deep Small : Change animation sequence to Western Wind

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Oct 2021
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    It's very difficult to understand your code because I do not know what are values, what are flags and what are Fusion built-in animation speeds.

    You would get help more easier if you recreated this in a .mfa file and uploaded that. It's easier (and more fun) for people to play around with a .mfa then to try and understand a long list of code.

    The only issue I can offhand see is that these lines will continuously reset your animation if the conditions are true, because they each time set the Current Animation to 1 or -1, and that calls the animation sequence, which will restart it.

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Eastern Wind is on
    River Deep Small : Set Current Animation to -1

    * NOT River Deep Small animation Western Wind is playing
    + NOT River Deep Small animation Eastern Wind is playing
    + River Deep Small: Western Wind is on
    River Deep Small : Set Current Animation to 1

    * Current Animation of River Deep Small = -1
    River Deep Small : Change animation sequence to Eastern Wind

    * Current Animation of River Deep Small = 1
    River Deep Small : Change animation sequence to Western Wind
    I understand, maybe it's not as clear as I thought.

    However, those lines shouldn't cancel each other out, since the supposed canceling condition contains both animations being turned off, which is not the case, once one of them has turned on.
    Your point me still be good though, about something canceling itself out. Thank you.

    Once more, this code did not work even without that first set of conditions, when I just forced eastern wind at object spawn.
    This is like the 5fth iteration of the same thing, which leads me to believe that there is something I am missing, weird since the debugger shows stuff working, but the graphics don't.
    After I posted this I rewrote it again, using animation directions, which failed in the same way. Debugger correct, animation wrong.

    Dunno, probably something with my code but I just can't figure it out, nor do I find any other posts about reversing the animation.
    I'm going to try doing to engines separate for each animation, and then toggling between them.
    I need acceleration, deceleration, and a sort of "magnetic puller" of those values. Which is what this is.
    It's basically like the ceiling peaks that stay up, once the real-time peak goes down.
    The engine I made required a modified calculation in an "Every events" calculation, and it worked but had a weird stutter at low speeds, even after I tried to send the output at a steady framerate.
    So basically it glitched around.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Oct 2021
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *EDIT*

    *Your point MAY still be good. Maybe is good rather, seeing how I can't even write my thoughts.

    Also,
    The last rambling sentence about steady framerate, I meant the engine I made for switching frames, so basically animation engine, the rest was about this thing that tries to use the built in one.
    Off-topic basically, sorry. Never mind it.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,190
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    Oh. The built-in animations have certain features also built-in that will auto-switch them. Therefore, if you do not want that auto-switching, then the best bet is to create your own animation frames with unique names and not use the built-in ones (the pre-named animations). But now I do not know if that feature is only available in the developer version or in all the versions. That could also explain why things are not working out for you.

Similar Threads

  1. Disappearing Animation Not Playing, 2.5+
    By dsilvers in forum Fusion 2.5
    Replies: 3
    Last Post: 22nd May 2019, 07:00 PM
  2. Animation not playing at all
    By Outcast in forum Android Export Module 2.5
    Replies: 11
    Last Post: 2nd January 2015, 06:40 PM
  3. animation is playing limitation?
    By mobichan in forum Fusion 2.5
    Replies: 6
    Last Post: 29th December 2014, 06:18 AM
  4. disappering animation not playing
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th May 2010, 09:49 PM
  5. Playing Random Animation
    By mussashimits in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 19th July 2007, 10:00 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
  •