viniciusgerevini / godot-aseprite-wizard

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

Use frame duration in SpriteFrames #96

Closed viniciusgerevini closed 1 year ago

viniciusgerevini commented 1 year ago

When this plugin was implemented there was no option to set a duration for each frame in SpriteFrames. The workaround was to calculate the duration of the quickest frame and duplicate the ones with longer duration. i.e. smallest 50ms, a 200ms frame would be duplicated 4 times.

In Godot 4 a duration property was added to the frame so I'm changing the plugin to use that, which can potentially save space and prevent rounding issues.