Character Turn Disable During Attack

I am looking for a way to disable the 2.5D character to be able to turn to the opposite direction while attacking with a melee weapon. Currently, while I am swinging the sword, if I am hitting the other direction, the character turns in the other direction in the middle of the attack, and completes the attack in that direction.

Thank you.
 
So here is a gif of what is happening. Face Target does not seem to make any difference for this in either case. Character has a turn speed of 10000, so hitting the other direction while walking in one direction turns her immediately. While attacking if I hit the other direction it will also turn during the attack, but I would like her to complete attack and for turn to be disabled during that time. But I do not think turning left or right is registered as an event or a state that can be overriden. Do you think this can be done without altering the code?
 

Attachments

  • ezgif.com-video-to-gif (1).gif
    ezgif.com-video-to-gif (1).gif
    629.9 KB · Views: 9
I tested this with Nolan in the 2.5D section of the demo scene, and it causes the exact same issue. I think it does make sense that you should be able to turn around while swinging the sword in an over-the-shoulder 3P view, but for a 2.5D game there should be a way to rotation during an attack.
 
Oh, what I meant is if you press on the other direction. If you are turned left and attacking left, and if you press right during the attack, character turns, and he makes an abrupt turn to the other direction. I did not mean the look using aim towards the cursor.
 
Ah.. that'll require some changes to prevent the pseudo 3d movement type from changing directions when the use ability is active. I can add it to my list.
 
Top