Set the good animation for top Down 2D

Hi everybody, First, sorry about my explain if i’m wrong, i’m french :slight_smile: !

I want to do a simple AI for ennemy in a top down RPG but i have some problem.

i want to set up the animation with the direction of my monster, i use a simple Vector2 to move my monster with his Rigidbody2D like :

myRigidbody.velocity = movedirection;
movedirection = new Vector2(Random.Range(-1f, 1f) * moveSpeed, Random.Range(-1f, 1f) * moveSpeed);

My monster have 4 face but the direction can me anywhere, and i want to use the animation of the principal direction . I don’t know if it’s possible, but, if i set the direction in only 4 direction, if the monster have to go in diagonal , i’ll have a problem no? the monster will go very fast in two direction no?

If someone can help me with that i’ll really appreciate! :slight_smile:

Thx again, and have a good day !

Pourrais-tu écrire en français ? Je pourrais sûrement t’aider mais je ne comprend pas ta question en anglais désoler.