Basic Attack


Basic Attack in Unity

This week I worked on some basic attacking that can be used on the player. When the player clicks a ray cast is sent out from the screen to get a reference to the enemy that was targeted. This activates the path finding, so the player can move into attacking range of the enemy.  Once the player has reached the player it attacks over time until the player moves away, attacks a different enemy or the enemy or players dies.

Tasks this week:

  1. Be able to click on  Enemy
  2. Move to enemy that has been clicked on
  3. Attack enemy over time if target has not been changed

Leave a comment

Log in with itch.io to leave a comment.