[gameprogrammer] How to lead off a bullet?
- From: "Alan Wolfe" <alan.wolfe@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Tue, 9 Jan 2007 21:48:17 -0800
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
- Follow-Ups:
- [gameprogrammer] Re: How to lead off a bullet?
- From: David Olofson
- [gameprogrammer] Re: How to lead off a bullet?
- From: Leighton Haynes
Other related posts:
- » [gameprogrammer] How to lead off a bullet?
- » [gameprogrammer] Re: How to lead off a bullet?
- » [gameprogrammer] Re: How to lead off a bullet?
- » [gameprogrammer] Re: How to lead off a bullet?
- » [gameprogrammer] Re: How to lead off a bullet?
- [gameprogrammer] Re: How to lead off a bullet?
- From: David Olofson
- [gameprogrammer] Re: How to lead off a bullet?
- From: Leighton Haynes