How can I loop animation for a 2d game?

hi

i make 2d game with use paper2d plugins
my char have a lot moving ex jump , walk , sitdown , …
i change animation with set flipbook. ex when user press “d” key play “walk” flipbook animation and …
but my problem is looping animation and i cant find node for when animation ended then play another animation

It can not be achieved from iside the flipbook class. But simply you can :

  • use (Timeline) node.
  • Adjust it’s time to the same time of the animation.
  • Connect whatever you want to happen/plays when the timeline node (OnFinish)
    I hope it make sense for you, I used to use similar thing with all other Engines. But I think we can update the flipbook class to include that behavior.

1 Like