Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Controller for Archer Character vs Archer Tower

Discussion in '2D' started by superflay, Nov 30, 2015.

  1. superflay

    superflay

    Joined:
    Nov 21, 2015
    Posts:
    13
    Hello guys,

    I am trying to create a character controller to do basically (I point/touch some location on the screen and he goes there.. if he finds in the area (some trigger zone around it) some enemy , then automatically goes to it and attacks it, if not then just remains unmoved in that location where I pressed.
    I was thinking of considering this archer hero to be like a "moving archer tower" , the same principle but with added the "go to enemy" and engage it to fight.

    Is there some asset or script that can help me do this?
     
  2. superflay

    superflay

    Joined:
    Nov 21, 2015
    Posts:
    13
    What I managed to do until now was to actually move with keys the character and do the fighting for him :).
    I want just to point at a location where he will stay and he will do the fighting and finding enemies that are in the proximity.