0 votes

Hi I'm facing a problem with animation sprites.
I have some sprites with different sizes. Then when I add and my node is centered the sprite grow from top and bot to center the sprite. It would be nice if my sprite will always be anchored on bot and grows from top.
I add one GIF to represent what I'm saying

gif

I notify that exist centered property in AnimatedSprite but if you unchecked it will always grow from bottom.
How can I do the trick? I don't want to resize all my sprites to the same size, in unity I can do this easy. What is the way for godot?
enter image description here

in Engine by (98 points)

1 Answer

0 votes

I have some sprites with different sizes.

The easiest way is to keep the frames on one size. For example, if you watch some tutorials, where characters are animated with an AnimatedSprite, you can usually see that every frame is the same size. Then you just avoid that..


I think there is no common way to do that..

But if you still want to use these sprites, you could try to animate it with an AnimationPlayer, where you set the animations UpdateMode to UPDATE_DISCRETE, see Animation. Then you could reposition your Sprite on every frame..

But then why would you need an AnimatedSprite node?

by (252 points)
edited by
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.