How to call animations for an Input

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JegerJM
:warning: Old Version Published before Godot 3 was released.

I have already created animations for my character but i cant figure out how to use them.
For example if i press “D” which is the button i use to move to the right, it would call the corresponding animation.
This is the current code i have for my “KinematicBody2D”

Do you think you could post your code as a comment?

Mtaethefarmer | 2017-08-06 07:34

this might help: https://www.youtube.com/watch?v=KZZ2OxzgTus

haz | 2017-08-06 11:42