[gameprogrammer] How to lead off a bullet?

Hey guys,

I'm trying to program something in a game of mine but am not having much luck.

Basically what i'm trying to do is make an enemy be able to shoot a
bullet that leads off on the player so that if the player doesnt
change course it will hit them.

I started working it out on paper but haven't gotten very far ):

As far as i see it (i might be wrong) i know these things:

*Player's current position
*Player's direction
*Player's speed

*Bullet's current position (where the enemy is)
*Bullet's speed (all bullets go the same speed)

and i'm trying to find...

*Bullet's direction

Anyone have any idea how to do this?  My solutions keep making the
bullets go wierd ways heheh

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: