Hey, i got a problem to how delete some sprites and go to the next lv
Here's what i have
if(dbSpriteCollision(1,30)==1)
{
for(int i=0;i<40;i++)
{
dbDeleteImage(i);
dbDeleteSprite(i);
}
dbSprite(50,0,0,45);
intro();
}
and when all sprites and images are deleted i wish to sprite appear saying 2nd lv or something and then when space key is pressed I'd like to make him disappear. So I made a function for it
void intro()
{
if(dbSpaceKey()==1)
{
dbDeleteSprite(50);
}
}
Everything goes okay until the sprite comes out, it looks like i want and stuff but when I'm pressing space key the sprite just wont go away... any ideas ?