Ok, I'm making a game where you can shoot bullets out of a gun. So what is the best way to shoot a bullet and make it keep moving until it hits some thing or after like 5 seconds in deletes itself? I know how to make the bullet move and I know how to find out how if it collides. But what I'm asking is what is the best to create a bullet over and over and over (like every 0.3s), and how do I tell if a single bullet hits something and how do I delete that single bullet (like with some arrays or something).
(If you want, I can post what I have so far.)
Thanks!
(If you want, I can post what I have so far.)
Thanks!