Question: Best way to make a hack slash in 2D

Hello Everyone,

There are two ways I found to create a melee system when working with 2D Games, using triggers and ray casts both work pretty good.

Nope that’s pretty much the best way to do it. Just make an invisible box in front of the character and when you attack, enable that box to do the collision with the enemy and remove it’s health points. Good luck.

Take a look. Hope it will help

http://forum.unity3d.com/threads/169828-Rebel-Hero-2