0 votes


I am new to godot so for my first project I made a simple 2d strategy game.
For that I made the simplest position animation in the built in animation player in godot.
However when I play the animation it plays as intended but when I run the game inside of godot the animation doesn't start and I can't even imagine why. Do I have to write and attach a scrip to the animation player or put it in the auto load or what do I have to do to make it work?
If someone can help me I would be very happy.

Thanks in advance.

Godot version 3.3.3
in Engine by (19 points)

1 Answer

+1 vote

An animation player can contain a number of different animations. In order to launch one of them at runtime, you need to call its play() method: $YourAnimationPlayer.play("animation_name").

by (1,261 points)

This is how it looks like:

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.