if (obj_kikky.happiness <= -500 && pitch) { pitch = 0; snd_pitch(global.currentsong[1], 0.5); } if (!pitch && obj_kikky.happiness > -500) { pitch = 1; snd_pitch(global.currentsong[1], 1); }