Re: my test bgt game dont work.

#include"sound_pool.bgt";
void main()
{
sound_pool p;
string ver="0.0 beta";
show_game_window("test attacking game v"+ver);
int creaturehp=100;
while(true)
{
wait(5);
if(key_pressed(KEY_SPACE)){
p.play_stationary("sounds/hit.ogg", false);
creaturehp--;
if(creaturehp==0)
{
p.play_stationary("sounds/end.ogg", false);
exit();
}
}
}
}
Havent tested it but it should work. Sounds must be in the sounds directory, as i assumed you wanted to be like that by setting sound storage, which you shouldn't actually do. Not your case.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : PatrykK via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Gaki_shonen via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : PatrykK via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Nuno via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : SkyLord via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : JayJay via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : JayJay via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ty via Audiogames-reflector

Reply via email to