sTesterGlass 0 -1 -20 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 canbeX = 0; image_speed = 0; enabled = 0; image_alpha = 0; flashing = 0; //myhealth = 30; myhealth = global.mod_testerHglass; if (global.difficulty >= 2) myhealth = myhealth - 20;; //damage = 40; damage = global.mod_testerDamage; 1 603 7 0 0 -1 2 self 0 0 1 enabled = 1; myhealth = 10; sfx_play(sndTesterBarrierUp); 1 603 7 0 0 -1 2 self 0 0 1 if (enabled == 0) { if (image_alpha > 0) image_alpha -= 0.1; } if (enabled == 1) { if (image_alpha < 1) image_alpha += 0.2; } if (flashing > 0) flashing -= 1; 1 603 7 0 0 -1 2 self 0 0 1 if (enabled) with (other) event_user(1); 1 603 7 0 0 -1 2 self 0 0 1 if (enabled) { myhealth -= 1; event_user(0); with (other) { event_user(0); instance_destroy(); } } 1 603 7 0 0 -1 2 self 0 0 1 damage_player(damage, 7, -3, 0, 0); if (other.x <= x) { with (oCharacter) x -= 3; } else with (oCharacter) x += 3; 1 603 7 0 0 -1 2 self 0 0 1 flashing = 5; sfx_stop(sndTesterBarrierHit); sfx_play(sndTesterBarrierHit); if (myhealth <= 0) { enabled = 0; if (global.difficulty >= 2) alarm[0] = 400; sfx_play(sndTesterBarrierDown); } 1 603 7 0 0 -1 2 self 0 0 1 draw_sprite_ext(sprite_index, -1, x, y, 1, 1, image_angle, -1, random_range(0.4, 1) * image_alpha); if (flashing) { draw_set_blend_mode(bm_add); repeat (2) draw_sprite_ext(sprite_index, -1, x, y, 1, 1, image_angle, -1, flashing / 5); draw_set_blend_mode(bm_normal); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1