A question regarding sound_play in BGT

Hello!
Hope all of you are doing well.
For example, let's say I am creating a piano program.
And I've loaded the sounds.
sound sound_1, sound_2, sound_3, sound_4, sound_5, sound_6, sound_7, sound_8;
Then I've loaded them.
sound_1.load("sounds/sound_1.wav");
Then
while(true)
{
if(key_pressed(KEY_1))
{
sound_1.play();
}
Etc. But the problem, when I want to play the piano, I can't hit the key twice. I can't hit the number 1 tweice till it ended.
When it ends, then I'll be able to play the number 1
Any fix please?
Regards.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — General Game Discussion : Sajad via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : Aminiel via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : Sajad via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : Muhammad Hajjar via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : burak via Audiogames-reflector
    • ... AudioGames . net Forum — General Game Discussion : burak via Audiogames-reflector

Reply via email to