Bullets and shooting help please
How do I constrain my bullets to my mouse position, but have the bullets keep going past my mouse position. I did what t-shirtbooth said to do in the video and that worked, but I am trying to have the bullets NOT stop at my mouse position. I want the bullets to keep going past the screen if they don't hit target.
Also, I want to continuously shoot the bullets, but I don't want the entire stream of bullets to be constrained to my mouse position (Example: I am holding down the mouse, which starts my stream of bullets, but when I move the mouse while held, the bullets that have already left the gun muzzle will now follow a path towards my mouse, which I will be moving around). I do not want that to happen. I want the bullets to follow their own trajectory.
Any help would surely be appreciated.
Also, I want to continuously shoot the bullets, but I don't want the entire stream of bullets to be constrained to my mouse position (Example: I am holding down the mouse, which starts my stream of bullets, but when I move the mouse while held, the bullets that have already left the gun muzzle will now follow a path towards my mouse, which I will be moving around). I do not want that to happen. I want the bullets to follow their own trajectory.
Any help would surely be appreciated.
Comments
http://speedy.sh/b7UTU/bulletDemo.zip
Hope this helps!
RThurman