![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | BennieBe |
I am new to Godot and I am trying to figure out how to use the AnimationPlayer to create animations. I have created an AnimatedSprite node where I stored all my walk animations of my character. So I have walk_left and walk_up for example.
Now I have selected AnimationPlayer, created a new Animation called “walk_left”, chose the 0 position of my timeline and then have clicked on my AnimatedSprite, chose the animation stored there called “walk_left” and clicked at the “Frame” option on the add key frame. I then incremented in the AnimationPlayer to position 1 and did the same again until I have all animated pictures in the timeline.
When I now hit start in the AnimationPlayer the animation runs perfectly fine.
But when I now try to create a new animation called “walk_up” in the AnimationPlayer and select the next Animation in my AnimatedSprite called “walk_up” and apply the same procedure, the second animation overwrites my first one…
I am clueless as to why this happens but it must be something trivial and since I have just started with Godot it is probably an easy fix I hope
Anyways, hopefully someone has a solution here.
I suspect that you need to create a new timeline animation within the AnimationPlayer to mirror your sprite animations, but controlled by the player and not the sprite animator.
In Godot 3.0 it should be the file with a green plus in the animation editor tab. And then select the other animation timeline in the dropdown.
Brandon Cline | 2019-02-21 02:03