Create sprite animation from single image

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CesarAugusto
:warning: Old Version Published before Godot 3 was released.

How can I import a single sprite sheet to animate my character? I mean, do I need to have every sprite frame to import into my AnimatedSprite? Or is there a different solution?
Consider a spritesheet like this:

Thank you.

Following Eons answer, you should make sure the frames/cells in your spritesheet are also uniform in dimension.

avencherus | 2017-10-21 04:37

:bust_in_silhouette: Reply From: eons

You can add the spritesheet to a Sprite node, then use the hframes and vframes to define the way it is divided.

After that, just modify/animate the frame property of the sprite node.

can you incorporate a sprite/animation node into a animatedsprite node?

thebaileybot | 2018-11-12 03:20

hi, this solution is correct ?!?!?!

grusso1986 | 2019-05-23 14:17

By the time of the question, it was the only way, now you can use spritesheets on AnimatedSprite too (I’m not sure if is on 3.1 already but will be on 3.2).

eons | 2019-05-24 10:05