Re: Error in BGT
Sorry, my original answer was a bit rushed, but what I meant was that you have the following loop:
for(int i=0; i<5; i++)
{
enemies(i).e.destroy_all();
enemies.remove_at(i);
}
It should look like this instead:
for(int i=0; i<5; i++)
{
enemies(0).e.destroy_all();
enemies.remove_at(0);
}
Can you tell why?
Also, do you really need to use a separate sound pool for every enemy instance? That's probably not a good idea in most cases.
Lukas
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector