• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

Code not working, help!

W

WillCampbell21

Guest
Basically, I am making a sound board app and I want it so that when you press on a button, it plays the sound and changes the instance. When I press the the button it plays the sound, changes the instance but it won't change back afterwards. Here is my code:

if (audio_is_playing(snd_druggo) == false)
{
audio_play_sound(snd_druggo, 1, 0);
}

if audio_is_playing(snd_druggo)
{
instance_change(obj_****indruggo2, true);
}

else
{
instance_change(obj_****indruggo, true);
}

Thanks guys!
 

Attachments

W

WillCampbell21

Guest
Ahh of course! So would there be a way to make it so that, when the sound finishes, change the instance back?
 
Top