if global.ldmode = 1 or global.invuln > 0 { exit; } else { lives -= 1 global.invuln = 120 sound_play(snd_playerhit) if lives < 0 { keyboard_key_press(vk_escape) } with (other) { instance_destroy() } }