• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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