[SOLVED]Destroying objects help
Posted: Fri Jun 05, 2009 12:45 pm
Hi people, this is my first thread here as I have just signed up so it is nice to meet you all
I am currently in the process off making a 2D side scrolling shooter (like Metal Slug.... just not nearly as good) game with C++ and DirectX. I have my window created, my player class and bullet class. My problem is that after about a minute of firing bullets the game gets very laggy indeed. I would really appreciate it if someone could explain to me how I go about deleting the bullets that are no longer in the window. Currently I am using vectors to store all my bullet objects however at the moment I have no way to destroying them.
Any and all help is appreciated
Your friend
Panama
I am currently in the process off making a 2D side scrolling shooter (like Metal Slug.... just not nearly as good) game with C++ and DirectX. I have my window created, my player class and bullet class. My problem is that after about a minute of firing bullets the game gets very laggy indeed. I would really appreciate it if someone could explain to me how I go about deleting the bullets that are no longer in the window. Currently I am using vectors to store all my bullet objects however at the moment I have no way to destroying them.
Any and all help is appreciated
Your friend
Panama