Re: A boquet of BGT questions for developers and who has skills

For example, you might try this after creating the game window:

sound logo;
logo.load("logo.ogg");
logo.play_wait();

However, that will not allow the player to skip the logo, which most games do. To enable this, you might try:

sound logo;
logo.load("logo.ogg");
logo.play();
// (This is a good place to put quicker things that need to be loaded or initialized, such as menus or configuration files.)
while (logo.playing)
{
if(key_pressed(KEY_RETURN))
{
 // If you want the logo to fade, you will need a loop here, like so:
while(logo.volume>-50) 
{
logo.volume=logo.volume-1;
wait(20);
}
logo.stop();
}
wait(10);
}


_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Sajad via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Sajad via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : lukas via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Sajad via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : blink_wizard via Audiogames-reflector

Reply via email to