+2 votes

So I have a spritesheet, and I can currently choose each individual frame for my sprite using the texture autoslice facility.

But I now want to use the same spritesheet for the character animation, but vframe and hframe doesn't work becuase the frames arent all the same size. Is there anyway of cycling through the autoslice rects to animate the character?

asked Jul 8, 2017 in Engine by mofro (30 points)

2 Answers

0 votes

AnimatedSprite node is your best bet I think :)

answered Jul 8, 2017 by wombatTurkey (285 points)

Can you explain a bit further?
The only way I can think of doing this is by separating the spritesheet into indivdual sprites and then using those with AnimatedSprite

You can simply use animatedSprite:
just add it by clicking + icon and searching for it.
then Click on it to see its properties in the Inspector and there you'll find Frames double click there.
then simply drag all sprites.. then you can play it from inspector or by code where you need to play animation.

I hope it helps!

Let me know if you need more help regarding this.

0 votes

You can use AnimatedSprite, watch this:
https://www.youtube.com/watch?v=1mksdbWddYk

answered Jan 13 by Heymi (22 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.