Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Top Down 2d Combat ( Not Swing Sword Like Zelda)

Discussion in 'Scripting' started by ShibaWaifu, Jun 12, 2018.

  1. ShibaWaifu

    ShibaWaifu

    Joined:
    Apr 17, 2018
    Posts:
    12
    I have different attack animation for each weapon (Sword, Lance, ..) + Player's facing direction ( Up, Down, Left, Right) like this :



    What i want to do is : when Red box hit enemy , enemy lost HP.
    Can you guy suggest me how to do it or give me another way to do it ?
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    You'd generally use colliders, including trigger colliders, unless you had a reason not to.
     
    Doug_B and Kurt-Dekker like this.
  3. ShibaWaifu

    ShibaWaifu

    Joined:
    Apr 17, 2018
    Posts:
    12
    if i using collider , i will need to use it a lot of :( . Every weapon have different collider ( Because weapon range is different ) + 4 collider for 4 red box per weapon ( Player's Facing Direction)
     
  4. Lethn

    Lethn

    Joined:
    May 18, 2015
    Posts:
    1,583




    Gamesplusjames has done an entire tutorial series on the type of game you're looking to make.
     
    ShibaWaifu likes this.