Game Development Community

Making an enemy shoot at the player

by B M · in Torque Game Builder · 08/14/2008 (8:57 pm) · 1 replies

Taking the shooter demo further how would I make an enemy ship fire its missile at the players current X-Y position and then continue on to the world limit if it misses?

#1
08/15/2008 (12:52 pm)
You calculate the vector between your ship and the enemy. then set the velocity of the missile based on that vector.