Godot Version
v4.3.stable.official [77dcf97d8]
Question
Player top-down character has 8-dir animation. And idle has also 8 directions. Direction is saved with this code:
dir = Input.get_vector("go_left", "go_right", "go_up", "go_down").round()
if dir: #save direction
idle_dir = dir
And when player goes diagonally and releases one key few frames earlier from other idle animation is 4-directional. I can use timers, but is there is a good way to do this?