Pages: 1
Topic closed
hi, i almsot figured it out, but i just have one more small quesiton, i used the cosine law to determine where the enemy is and to follow the enemy, so far the code work but one small problem is that there are more than one same angle throughout the map and that the sprite dosn't know which way(up,down,left,right) the enemy is, so i was wondering if any of you out there can help me fiure this out thank you very much you have all been great help to me!
Offline
You need an "if .... else statement to check whether or not the target is to the left or right of your main sprite. Then in one you have you normal formula, in the other yu have you normal formula * -1
Offline
Topic closed
Pages: 1