8 Replies Latest reply: Sep 21, 2012 7:55 AM by thunderxlight11111 RSS

    i need help please

    thunderxlight11111 Community Member

      hi , how are you all?

      i hope you all fine ..

       

      here

      iam programming a game and there is spell that summon monster then the monster should attack the enemy by his electric spell (range spell)  i want the spell to follow the enemy

      then hit him

       

       

      and here is the problem

      i know how can i send it there but not by steps

      like

      enemy.x = spell.x

      enemy.y = spell.y

      if(hittest.....)

       

       

      but i dont want that , i want the electric follow the enemy Then killing him

      thank you