I am making a top down game with 8 animation directions. The movement is reading Input.GetAxis which is smoothed, so there's some nuanced in deciding how and when to change animation directions.
I have tried my hand a few times at creating my own system for this, but it's proving difficult to come up with an efficient, concise system, i.e. it often devolves into spaghetti.
An inspiration for what I'm going for would be CrossCode https://www.youtube.com/watch?v=QTwv5zKFYh4&list=PLGKJJhcJXlNwiTRYc2RhaVkOJinRk613q
Any tips for how to go about this?
CrossCode Walkthrough Part 1 No Commentary Gameplay
This retro-inspired 2D Action RPG might outright surprise you. CrossCode combines 16-bit SNES-style graphics with butter-smooth physics, a fast-paced combat system, and engaging puzzle mechanics, served with a gripping sci-fi story.
CrossCode is all about how it plays! That's why there is a f...