+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?

in Engine by (34 points)

2 Answers

0 votes

AnimatedSprite node is your best bet I think :)

by (308 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:

by (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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.