0 votes

i've been making my animatedsprite node move, and so far i have 8 - directional movement. the only problem is when i lift the key, the animation stops at the frame it was currently at. is there any way i can make it stop at a different frame like idle? would i have to make a new animation and code that or is there another way i can use?

thanks!

in Engine by (16 points)

1 Answer

0 votes

If you are using AnimatedSprite, and the idle animation is just one frame, and the moving animations contain the frame you want, then you should be able to simply set the frame property to the idle frame whenever you stop moving. On the other hand, if you want actual idle animations, then you may need to make separate animations and switch to them using play.

by (108 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.