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.
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.
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:
Follow this question
Once you sign in you will be able to subscribe for any updates here