I think it's a bit more complex than that.
because the player starts with bullet effect,
and has to set the correct animation for the direction where it is moving similarly to 8 directions.
the game is based on the open world.
Here is an image of the code currently: