How to get 8 directional mouse movement?

Is there anyway i can make my character rotate at 45 degree angles as it moves while using mouse movement?

I am using the top-down blueprint and would like my character to snap rotate to every 45 degree angle while moving forward, so the character can only face and move in the directions shown in the compass image below as i click and hold the left mouse button down.

http://gwydir.demon.co.uk/jo/units/compass2.gif

Can it be done in the Character blueprint?

Sorry if i am being too vague. ><

Here is a very simple setup of how you might do that in a pawn with a FloatingPawnMovement component.
With this, the pawn will move toward the location of the clicked point while left mouse is held down, and will only move in 45 degree angles.
You may need to add more detail in the description of what sort of movement you want to achieve if you want to get a more detailed answer though.

Edit:

Below is how you would do it in the TopDown template, put this in the PlayerController blueprint, TopDownController.
Delete everything that is happening on the Tick event in the current one and replace it with this:

Hey, updated the answer for the TopDown character, works pretty much the exact same.

Thank you for the help. :slight_smile:

My character now moves in only 8 directions however, the character wont rotate as i move the mouse. I have to stop holding the left mouse button and then click again in another location for the character to face a new direction.

Is there a way for me to get the character to rotate 8 directions as it moves forward, as i hold down the mouse button?

Thank you so much for the help, it works perfectly!

Ah, just move the Sets, so that they are after the Gate: