W
WillCampbell21
Guest
Basically, I am creating a soundboard and I am trying to make it so that when the user presses the button, the sound plays and the instance changes to another object (purple button to pink button) this makes it so that the user cannot continuously press the button and they know that the sound is playing.
Here is my code:
Here is my code:
if audio_is_playing(snd_druggo)
{
instance_change(obj_indruggo2, true);
}
else
{
audio_play_sound(snd_druggo, 1, 0);
instance_change(obj_indruggo, true);
}
Thanks Guys!{
instance_change(obj_indruggo2, true);
}
else
{
audio_play_sound(snd_druggo, 1, 0);
instance_change(obj_indruggo, true);
}
Attachments
-
338.8 KB Views: 6