how about making a slash if I press left click? Thank you!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sugor

How to make a smooth slash if i press an action button.

:bust_in_silhouette: Reply From: Mrpaolosarino

What do you mean? did you mean sword? if it is then just create a short raycast 2d that represents the range of your attack. Then if you clicked the left mouse button and if it is an enemy, then you lessen the health of the enemy and play slash animation.