viniciusgerevini / godot-aseprite-wizard

Godot Editor plugin to help import Aseprite animations to AnimationPlayers, AnimatedSprites and SpriteFrames.
MIT License
826 stars 42 forks source link

Add support to Aseprite repeat #91

Closed viniciusgerevini closed 1 year ago

viniciusgerevini commented 1 year ago

Implement Aseprite repeat support suggest in #90 .

Aseprite repeat tag support. From Aseprite 1.3 there is an option to set how many times an animation should be repeated.

If not set, the animation will loop by default or follow whatever behaviour is set via the loop configuration from project settings.

If set, the plugin will repeat the animation n times and stop, like in Aseprite. This means you can disable looping by set repeat.

Aseprite does something weird when it comes to ping-pong. If you set repeat to 1 it will only play half the animation (ping bug not pong). This looks like an issue to me so I won´t be implementing this behaviour.