You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
Looping animations is possible with AnimatedSprite2D but they always loop frames as 1, 2, 3, 1, 2, 3...
Looping in ping-pong mode is a very common use case, the same way as it was added for Tilemaps: 1, 2, 3, 2, 1, 2, 3, 2, 1...
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It would be nice if there was a bool under the Animation properties for a tile that I could click on which set it so that when the tile animation reached the end, it would reverse the frame order and go backwards right to the start.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It could be a bool added between the loop icon, or a selector if other modes are added (are there?)
If this enhancement will not be used often, can it be worked around with a few lines of script?
It can, but having to add the script to manage every possible animation with a simple state machine, or even duplicate the number of frames... but it would be a hassle and it's better if it's an animation property that can be enabled/disabled programmatically.
Is there a reason why this should be core and not an add-on in the asset library?
This is a very common animation functionality in games (for walking, actions, blinking eyes, moving mouths, etc. etc.)
The text was updated successfully, but these errors were encountered:
Describe the project you are working on
Generic and basic 2D project
Describe the problem or limitation you are having in your project
Looping animations is possible with
AnimatedSprite2D
but they always loop frames as 1, 2, 3, 1, 2, 3...Looping in ping-pong mode is a very common use case, the same way as it was added for Tilemaps: 1, 2, 3, 2, 1, 2, 3, 2, 1...
Describe the feature / enhancement and how it helps to overcome the problem or limitation
It would be nice if there was a
bool
under theAnimation
properties for a tile that I could click on which set it so that when the tile animation reached the end, it would reverse the frame order and go backwards right to the start.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
It could be a bool added between the loop icon, or a selector if other modes are added (are there?)
If this enhancement will not be used often, can it be worked around with a few lines of script?
It can, but having to add the script to manage every possible animation with a simple state machine, or even duplicate the number of frames... but it would be a hassle and it's better if it's an animation property that can be enabled/disabled programmatically.
Is there a reason why this should be core and not an add-on in the asset library?
This is a very common animation functionality in games (for walking, actions, blinking eyes, moving mouths, etc. etc.)
The text was updated successfully, but these errors were encountered: