Sliding a Character on the direction of the Attack


I am new to programming and im making a 2D isometric game, i was wondering if there is a way to slightly “slide” the character in the direction of my attack (where i click with the mouse) so that the combat feels more fluid and dynamic.

Thanks in advance.

Use rigidbody.addforce to literally push the object in the direction of movement.