K this is how my game works:Originally Posted by Hunter2
if you pressed space bar, creat a new instace of the class User_Laser
regardless of the first condition (space bar pressed) loop trought all the lasers and perform collision detection.
then loop through all the lasers again, but this time check if any of the have hit anything or are off the screen. If either is the case, delete this laser, then reset the counter(the goto) and go through the loop again, checking for obsolete lasers. I've noticed that this is *rather* memory intensive tho! I need to find a new way, but for the moment, this is what i'm doing.
Alright, can I use this with my current code? All that does is swap the laser[i] with the last one, the remove the last one right?Originally Posted by grib
Also, i could only get my vectors to work if I started my loop at, get this, 92. WTH? Whacked stuff
Thx for the help