Help with getting ending of flipbook play(paper2d)

Hi guys, i have looped flipbook animation for idle, run and jump, but i need add another animation for first step( from idle to run), so i need some how to check if first step animation flipbook play to end and then start run animation flipbook, so problem in checking is first step animation flipbook played to end or not

PS i know a sprite component has event on end play but it not work!!!(nothing happen, just not SHOOT)

Could we have part of blueprint in which you change animations and where this error occurs? (Basically where your event end play is located and nodes around it).

Hi ,

If OnFinishedPlaying event is not firing, then its flipbook is not finishing. You need to make sure flipbook is set to not loop right before you want OnFinishedPlaying event to fire, as shown in images in this post:

If that doesn’t work for you, please show us some images of your BP setup.

Hope that helps!

my system based on epic examples, in first time all work super easy and simple but problems start when i want to add first step flipbook animation(from idle to run). For now i create temp solution for first step(with timeline), but if in future i want add animation from run to jump or idle to jump(this animation must play only once) so i have a problem in future.

Temp working solution for first step

and there is not working example(event don’t fire)

All of these animations loop, so OnFinishedPlaying will never fire. You can solve this with Set Looping node for Sprite right before you switch to next Flipbook.

If you are calling your custom event “animation” whenever you want change which Flipbook you’re using, first use Set Looping node to set New Looping to false, and THEN use Set Flipbook as you are using it now.

images and solution from other post I linked to should work for you as well, as long as you remember to Set Looping to false so OnFinishedPlaying event has a chance to fire.

Just want to thank both of you, can’t believe thsi was only asked 2 days ago, was exactly what I needed.

I was pulling my hair out and thanks to your answer I realised that I wasnt calling “Play”!