Description
Describe the project you are working on
I'm working on a 2D action-platformer.
Describe the problem or limitation you are having in your project
There are animations I have that loop, but have a start-up animation. Right now with the way I've implemented animations, if I loop an animation, it will also loop to those initial few frames of the start-up animation.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Being able to set a loop section will allow the both the start-up frames to play and loop just the specified section.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If the animation has looping enabled, a bar will pop up over the timeline with two endpoints. The time range inside the bar gets looped. The default values are starting at 0.0 seconds and ending at how long the animation is, and the user can drag the endpoints elsewhere in the animation.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I already work around this by making another animation and having the AnimationPlayer automatically transition to that loop animation when the start-up animation ends.
Is there a reason why this should be core and not an add-on in the asset library?
A feature similar to this already exists when looping audio files, and it gives the user more flexibility when creating animations inside of the engine.