The 2D Grid Battle RPG tutorials
have been updated to use an easier way to handle directional 2D animations.
Previously, this was handled via the movement direction and was rather complicated, leading to strange issues (e.g. bumping into something caused looking into the other direction).
Now, the combatants use this setup:
- root of the prefab rotates to face the direction it moves into
- sprite on child object (with animations) always faces camera using Face Camera
- rotation is forwarded to the animator controller as a 4-directional value (0-3), which lets the animator use blend trees to play the correct animation for east (0), north (1), west (2) and south (3) directions
This also makes some changes to some of the schematics animating battles, as they can now simply use the Rotate To
node to face a target.
In case you where currently doing those tutorials, I'd recommend to restart doing them from the beginning - and don't forget the (also updated) tutorial resources, since the prefab setup has changed.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com