What is the AnimationTree?
What is the AnimationTree?
An AnimationTree is a node that controls animations created in AnimationPlayer. It allows you to build State Machines graphically and control transitions.
An AnimationTree is a node that controls animations created in AnimationPlayer. It allows you to build State Machines graphically and control transitions.
What is a State Machine?
What is a State Machine?
A state machine will read a series of inputs. When it reads an input, it will switch to a different state. Each state specifies which state to switch to, for a given input. This sounds complicated but it is really quite simple. For our animations, if the enemy is not provoked it is in the idle state, if it is provoked it is in the attack state and it will play the corresponding animation.
A state machine will read a series of inputs. When it reads an input, it will switch to a different state. Each state specifies which state to switch to, for a given input. This sounds complicated but it is really quite simple. For our animations, if the enemy is not provoked it is in the idle state, if it is provoked it is in the attack state and it will play the corresponding animation.