Godot: Add texture atlas support for SpriteFrames

Created on 24 Jun 2017  路  11Comments  路  Source: godotengine/godot

Operating system or device - Godot version:
ALL

Issue description:

AnimationSprite is an easy way to create frame animations, but we can not put all the frame images in a single file.

Steps to reproduce:

Link to minimal example project:

confirmed feature proposal core editor

Most helpful comment

This new feature is still NOT provide in 3.0!

All 11 comments

it would be better to support multiple animations in one sprite sheet.
For example, we can put walking, running and jumping frames in one sprite sheet, and set the "start frame" and "end frame" for each animation, the default values for these two settings could be 0 and the last frame.
Thanks!

@alexzheng Don't worry, we would probably go as far as to support texture atlases (unaligned frames) and using the frames in any order that one might want (which would imply being able to use only some of the frames of an animation).

amazing

Can't you just import all your frames into a single AtlasTexture and load the single .atex files into your SpriteFrames? This is what I'm doing and it works just fine.
Or do you mean something else?

@timoschwarzer you can, but it isn't intuitive enough.

What is your suggested way of doing it?
For me this way works just fine and is intuitive enough due to its flexibility.

First of all thank you for your report and sorry for the delay.

We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.

We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about its current status here?

For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.

Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.

Thanks in advance.

Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.

This new feature is still NOT provide in 3.0!

The SpiteFrames editor would be even more convenient if you could open image, specify the number of rows and columns, and the frames would be automatically imported.

Maybe not exactly the solution you guys wanted but I made a script for SpriteSheet Packer that allows publishing a spritesheet directly as an AnimatedSprite.

It supports organizing the animations by folder.
You'll have all the frame definitions and animations packed in the .tscn.

screenshot

Fixed in 3f76d2c2

Was this page helpful?
0 / 5 - 0 ratings