if (sprite_index != spr_looxhurt) { dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y, obj_dmgwriter); global.damage = takedamage; with (dmgwriter) dmg = global.damage; sprite_index = spr_looxhurt; snd_play(hurtsound); } x += shudder; if (shudder < 0) shudder = -(shudder + 2); else shudder = -shudder; if (shudder == 0) { global.hurtanim[myself] = 2; exit; } alarm[3] = 2;