You don't really need any variables or anything.
There is a condition called 'Is between angles', you could use that. Then just give it an action such as 'change animation'
And if you want it to detect angles when moving only then add another condition to the first one where it detects 'if moving' )Part of the 8-direction movement behaviour, but you could just tinker with it to not accept controls at all)