View previous topic - View next topic |
Author |
Message |
Rainer Deyke Demon Hunter
Joined: 05 Jun 2002 Posts: 672
|
Posted: Fri Feb 27, 2009 10:58 pm Post subject: |
[quote] |
|
Code: | void SpriteManager::Delete(unsigned int index)
{
spriteList_.erase(spriteList_.begin() + index);
} |
|
|
Back to top |
|
|
Captain Vimes Grumble Teddy
Joined: 12 May 2006 Posts: 225 Location: The City Streets
|
Posted: Fri Feb 27, 2009 11:02 pm Post subject: |
[quote] |
|
Thanks, Rainer, but that's not working either. Does the erase() function just leave an empty place in the list that I have to fill in with another function? _________________ "Sometimes it is better to light a flamethrower than to curse the darkness."
- Terry Pratchett
|
|
Back to top |
|
|
Captain Vimes Grumble Teddy
Joined: 12 May 2006 Posts: 225 Location: The City Streets
|
Posted: Sat Feb 28, 2009 1:02 am Post subject: |
[quote] |
|
Okay, the crisis has passed. After a while of banging my head on the keyboard I found the problem. Back to work. Urgh. _________________ "Sometimes it is better to light a flamethrower than to curse the darkness."
- Terry Pratchett
|
|
Back to top |
|
|
DeveloperX 202192397
Joined: 04 May 2003 Posts: 1626 Location: Decatur, IL, USA
|
Posted: Sat Feb 28, 2009 3:04 am Post subject: |
[quote] |
|
Captain Vimes wrote: | Okay, the crisis has passed. After a while of banging my head on the keyboard I found the problem. Back to work. Urgh. |
I know the feeling...I spent 6 hours today tracking down a + 1 on an index counter that was causing my engine to segfault (crash)
finally it looks like its all good....now I can focus on game content instead of code XD _________________ Principal Software Architect
Rambling Indie Games, LLC
See my professional portfolio
|
|
Back to top |
|
|
Captain Vimes Grumble Teddy
Joined: 12 May 2006 Posts: 225 Location: The City Streets
|
Posted: Sun Mar 01, 2009 2:16 am Post subject: |
[quote] |
|
Guh.
Well, it's finished. And it's not nearly what I had hoped for. Since I only had a day and a half to build the project, it ended up pretty much a sideways Space Invaders. Still, I bet I'll win since there are no other entries in Gaming. ;)
I made sure to mention you guys both in the project description and in my official "steps taken" file, especially DevX for his help with the Hammer.
I don't know what I'm going to do now. I want to make an RPG, but I'm not sure how to start. Does anyone have C++ source code from an old project lying around that they wouldn't mind letting me look through to see how it works? _________________ "Sometimes it is better to light a flamethrower than to curse the darkness."
- Terry Pratchett
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|