R
Rahiokawines
Guest
Once all enemies in the room are dead, my gate is destroyed. I set it so when the gate is destroyed, a sound effect plays. It works fine when in sounds menu, but in game, it is super loud and keeps repeating itself untill i exit the room. I have tried using different sounds and it still happens so I think its in the coding. here it is:
oPlayer Step Event
//Next Level Gate break
if(instance_number(oEnemy) <= 00)
{
instance_destroy(oGate);
object_set_visible(oGate,false); // I could Still see Gate after "destroy" so I added this.
audio_play_sound(sdGateOpen, 10, false)
}
oPlayer Step Event
//Next Level Gate break
if(instance_number(oEnemy) <= 00)
{
instance_destroy(oGate);
object_set_visible(oGate,false); // I could Still see Gate after "destroy" so I added this.
audio_play_sound(sdGateOpen, 10, false)
}