gmc-jam-7/objects/obj_player/Collision_obj_enemybullet_L...

20 lines
286 B
Plaintext
Raw Permalink Normal View History

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()
}
}