I am trying to make a top down shooter style game and am having a hard time getting a sprite to "chase" the player's sprite.
Asked
Active
Viewed 523 times
-2
-
1What have you tried so far? Do you have a code fragment that you can share? – Irwin May 08 '13 at 00:11
1 Answers
0
Take a look at seek behavior will work for chasing. http://gamedev.tutsplus.com/tutorials/implementation/understanding-steering-behaviors-seek/
If you don't want that, you can use vectors to get the direction from one unit to the other. ( Then scale the length / cap it )

ninMonkey
- 7,211
- 8
- 37
- 66