Re: a help needed to me with bgt please
when you open bgt help, go to the following part
References/Foundation Layer/Object Reference/sound/Methods/play
then on play you will see the following
sound object
This method will start the sound playback.
bool play()
Parameters:
None.
Return value:
true on success, false on failure.
Remarks:
This method returns immediately after the sound has started playing, it does not wait for the playback to finish. In order to determine when the sound has stopped, use the "playing" property.
Example:
// Play a sound, and then manually wait for it to stop before exiting.
void main()
{
sound ambience;
ambience.load("ding.ogg");
if(ambience.active==false)
{
alert("Error", "The sound could not be loaded.");
exit();
}
ambience.play();
while(ambience.playing==true)
{
wait(5);
}
}
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector