magnitude with actors

rollorollo Member Posts: 15
Hi there GS members,
I am creating a game where there are two armies. I need help with magnitude. I figured out how tell the distance between two actors, but for my game there will be many enemies and heroes. I would like them to attack(move) towards the nearest enemy. Does anyone know how to do this with multiple actors. Here is a game where this happens

Best Answer

Answers

  • rollorollo Member Posts: 15
    Can anyone help?
  • rollorollo Member Posts: 15
    Thank you! I was starting to lose hope. I do have one question for you though. In the template is the warrior attacking the nearest enemy to it or the nearest enemy to the back?
  • AppTacoAppTaco Member Posts: 125
    Glad it helped.
    Right now it's not very "accurate". The warrior attacks the enemy that is closest to the left side of the screen.
  • rollorollo Member Posts: 15
    Yah thats what I thought. Is there any way to make it attack the person closest to it? If not thats cool too
Sign In or Register to comment.