I am using the TOP DOWN Point-and-Click system for my game project and I have a Dodge-roll animation implemented which will play upon pressing the “Left-Shift” key. This will work nicely when clicking with a mouse to a desired location to move the character and execute the dodge roll while the character is moving to the clicked location.
My problem arises when I hold the click key to have a continuous movement and then press to Dodge-roll, suddenly, my character executes the Dodge-roll in place, unable to move in the direction of the klicked location. Naturally, I am aware that I have disabled the player input for the duration of the animation so that the player could not suddenly change directions in the middle of a dodge roll.
What I try to do is to make the logic so that when the player controller is disabled, the character would still move to the last clicked location while executing the animation, even when holding down the left mouse key to move and update the destination location constantly.