[FEATURE REQUEST] Mirror frames/reverse frames.

Started by ThreeOhFour, Yesterday at 01:02:56

Previous topic - Next topic

ThreeOhFour

A nice to have feature for animation work is the ability to select a series of frames and reverse the order that they play in. Terminology differs per program, here's Aseprite and Krita:





Makes it very quick to make an animation play forwards and backwards using a single loop of a viewframe without having to check in code if it's finished or not. That's very handy for background animations like a curtain blowing in the wind.

Crimson Wizard

#1
Are you speaking of reversing loops in the editor, or at runtime?

If runtime, there's a Direction parameter in Animate function, does it work for this case?
https://adventuregamestudio.github.io/ags-manual/Character.html#characteranimate
https://adventuregamestudio.github.io/ags-manual/Object.html#objectanimate

EDIT: or are you speaking about COPY / PASTing selected frames in reverse order?

ThreeOhFour

This is in the editor! So for example, imagine I have an animation that I want to play in this order, looping repeatedly:

1 2 3 4 5 6 7 8 9 9 8 7 6 5 4 3 2 1

At this point it seems like I have to set this order either by adding the frames one by one to the loop, backwards, or play the animation forwards, check for when it's finished, and then play it backwards. In a normal animation editor, I will just duplicate the frames like this:

1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9

Then I will select the second set of frames and "mirror" or "reverse" them to get the desired order with one click.

eri0o

#3
Quote from: ThreeOhFour on Yesterday at 01:52:25In a normal animation editor, I will just duplicate the frames like this

Can this step be done in AGS already or that isn't possible either? I don't remember.

About the runtime CW mentioned, I guess it would use a third parameter like eForwardsThenBackwards or something.

Crimson Wizard

So View editor needs either a "Reverse frames" or a "Paste in reverse" command, or both of them in the context menu.

Also, while checking the View editor I noticed that there's no regular "Copy/Paste" command acting over selected frames, only "Copy loop/Paste loop". Probably that's because there was no way to select multiple frames before (this ability was only added in the latest versions).


Quote from: eri0o on Yesterday at 02:08:12About the runtime CW mentioned, I guess it would use a third parameter like eForwardsThenBackwards or something.

I had this proposal about expanding animation parameters:
https://www.adventuregamestudio.co.uk/forums/engine-development/proposal-expand-animation-range-repeat-parameters/

ThreeOhFour

Quote from: Crimson Wizard on Yesterday at 02:19:05I had this proposal about expanding animation parameters:
https://www.adventuregamestudio.co.uk/forums/engine-development/proposal-expand-animation-range-repeat-parameters/

The expanded parameters you list there would accomplish the same thing I suggested here, but in the function call rather than the view editor. Actually, it might be better because it's even more flexible and doesn't tie up additional loops if you want to use one set of frames for multiple styles.

Crimson Wizard


SMF spam blocked by CleanTalk