Game enemy move towards player

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-04-12T20:06:03Z Indexed on 2010/04/12 20:12 UTC
Read the original article Hit count: 498

Filed under:
|
|
|
|

I'm creating a game in c++ and OpenGL and want an enemy to move towards the player. I tried finding the length of the hypotenuse between the player and the enemy. how could i get the enemy to move down that line?

© Stack Overflow or respective owner

Related posts about c++

Related posts about opengl