godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.07k stars 69 forks source link

Use atlases for AnimatedTexture frames #4634

Open elvisish opened 2 years ago

elvisish commented 2 years ago

Describe the project you are working on

2D platformer with tilemaps.

Describe the problem or limitation you are having in your project

It should be possible to use atlases for the frames of AnimatedTextures as it is very inconvenient to require many individual images for each frame and currently it can be set-up without any warning in the editor, so the AnimatedTextures just simply does not animate.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

It's more convenient and is in keeping with how everything else is structured.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

It would just be built-in to the engine.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No.

Is there a reason why this should be core and not an add-on in the asset library?

It's an engine-level issue.

elvisish commented 2 years ago

Here's issues relating to this: https://github.com/godotengine/godot/issues/37860 https://github.com/godotengine/godot/issues/37977 https://github.com/godotengine/godot/issues/61774

And Juan's tweet regarding current efficiency (thanks @KoBeWi for the link): https://twitter.com/reduzio/status/1018869909781180427

Calinou commented 2 years ago

Related to https://github.com/godotengine/godot-proposals/issues/1708.