Play animation in reverse

0 favourites
  • 9 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hello,

    How to play animation in reverse? I know that I can duplicate an object and to set all frames in different order. Just want to know is there any function to do it with some action or event.

    Thank you!

  • Set loop off and set frame progression on a variable.

    There's probably an easier way.

  • Reading the guts of the Sprite plugin, It's possible.

    Maybe it's a Ash forgot to check that, but if you put a negative number into the speed property values you'll have a buggy animation.

    However if you set the animation speed by event to a negative value, the animation will be read backward.

    Unfortunately the loop value won't be taken into account and you'll have to 'manually' set the starting frame. In event and/or in properties.

    In short,

    +System: On start of layout
      -> Sprite: set animation to self.AnimationFrameCount-1
      -> Sprite: set animation speed to -5
    +Sprite: Animation Frame = 0
      -> Sprite: set animation to self.AnimationFrameCount-1

    Works.

    But note that the 0 frame will never be seen, so you should put a blank frame for first frame.

  • Another event workaround:

    Compare if animation is on frame 0, then go to last frame of animation.

  • Why don't you just flip the animation around in Photoshop and then reload the frames. Might not be the best way for file size. But if its just for one or two animations, then it is definitely the easiest.

  • Hi folks, I was doing a search on this topic and came across this thread. Setting my animation speed to a negative number worked for me-

    *I had an animation run to the last frame and loop was set to "no", speed set to 10

    *When I wanted animation to reverse i set speed to -10, and "start animation from current frame" (in this case, my last animation frame).

    This worked great for getting some acting out of characters that "start" and "stop" (in this case talking, looking up, or down etc.), but I don't know if it would be ideal for looping animations.

  • i need to play a looping animation backwards or forward (toggle looping backwards/forward direction with two button) how can i do this? there is a trick to reverse looping animation without insert a blank 0 frame? (this because in forward direction the blank frame is visible and make the animation wrong ... and i can't duplicate frame for memory reason).. thanks in advance!

    solved by myself thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • But note that the 0 frame will never be seen, so you should put a blank frame for first frame.Yann2012-02-06 11:59:33

    To avoid the 0 frame not see simply wait 1/animation speed seconds, so no need to put a blank frame for first!

    In short,

    +System: On start of layout
      -> Sprite: set animation frame to self.AnimationFrameCount-1
      -> Sprite: set animation speed to -5 
    +Sprite: Animation Frame = 0
      -> System: Wait 1/5 seconds
      -> Sprite: set animation frame to self.AnimationFrameCount-1[/code:9joxf1os]
    Works perfect! 
    thanks!
    Aelfraed
  • hi guy´s check this error

    "play current animation to.."

    "to keyframe"

    "4"

    in my case, my char was playing the animation in reverse. try to put hight values

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)