Re: is there a way to don't stop all the game by wait codein bgt?

hello,
i think this is the corrected code:

void enemykill()
{
if(enemyhealth<=1)
{
played=true;
int enemyfall=p.play_2d("edie"+gender+".ogg",me.x,me.y,enemy.x,enemy.y,false);
if(p.sound_is_playing(enemyfall)==false)
{
played=false;
}
if(played==false)
{
enemyfall2=p.play_2d(get_tile_at(enemy.x,enemy.y)+"fall.ogg",me.x,me.y,enemy.x,enemy.y,false);
if(p.sound_is_playing(enemyfall2)==true)
{
played=false;
}
return;
}
}
p.play_2d("ediecompleet.ogg",me.x,me.y,enemy.x,enemy.y,false);
p.update_listener_2d(me.x, me.y);
wait(5);
dollars+=random(50,200);
speak("enemy killed. You currently have"+dollars+"dollars");
gender=random(0,1);
enemyhealth=1000;
enemy.x=random(0,maxx);
}
}

i didn't spend time on it, sorry, just modify it, let's see that it work's or not



_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : kianoosh shakeri via Audiogames-reflector

Reply via email to