Location: Assets/Plugins/Animancer/Examples/04 Directional Sprites
These examples demonstrate how you can group animations into sets of up/right/down/left (including or excluding diagonals) using Directional Animation Sets to implement characters who can face any direction while performing various actions.
This concept can be extended to any situation where you want to define a reusable structure for a set of animations (whether 2D like these examples or not). For example, you could make a
CharacterAnimationSet containing all the standard animations of a character (Idle, Walk, Run, Attack, etc.) or a
Weapon could hold all the animations that characters need to use when it is equipped. That way you can reuse the same structure throughout your project.
|01 Basic Movement||Use DirectionalAnimationSets to organise animations in groups of up/right/down/left, using the exact same structure for both Idle and Walk animations across various different characters.|
|02 Character Controller||Use DirectionalAnimationSets in a slightly more complex character and then change to a character that uses DirectionalAnimationSet8s to support diagonal movement as well, without changing the controller script at all.|