Search Unity

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

Discussion in 'iOS and tvOS' started by VeeBeeMee, Apr 23, 2013.

  1. VeeBeeMee

    VeeBeeMee

    Joined:
    Apr 21, 2013
    Posts:
    5
    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.
     
    Last edited: Oct 3, 2013
  2. DexRobinson

    DexRobinson

    Joined:
    Jul 26, 2011
    Posts:
    594
    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.
     
  3. BarbaricCo

    BarbaricCo

    Joined:
    Sep 29, 2011
    Posts:
    77