sGlowFly 0 -1 0 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 event_inherited(); myhealth = 5; damage = 8; hitsound = sndEHit2; deathsound = sndEDeath2; platyoffset = -6; frozenspr = sGlowFlyFrozen; flipx = 0; facing = 1; state = 0; active = 0; image_speed = 0; light = instance_create(x, y, oLight32); 1 603 7 0 0 -1 2 self 0 0 1 with (light) instance_destroy(); 1 603 7 0 0 -1 2 self 0 0 1 light.x = x; light.y = y; 1 603 7 0 0 -1 2 self 0 0 1 enemy_active_check(20); if (active == 1 && stun == 0 && frozen == 0) { if (state == 0) { if (statetime == 0) { direction = image_angle; image_index = 0; } if (statetime >= 60) { state = 1; statetime = 0; } } if (state == 1) { direction = image_angle; speed = 8; if (image_index < 2) image_index += 0.5; if (collision_line(x + lengthdir_x(5, direction), y + lengthdir_y(5, direction), x + lengthdir_x(6, direction), y + lengthdir_y(6, direction), oSolid, true, true)) { speed = 0; image_angle += 180; if (image_angle > 360) image_angle -= 360; state = 0; statetime = -1; } } } else { speed = 0; image_speed = 0; } // if (active == 1 && stun == 0 && frozen == 0) else if (state == 100) enemy_death(); event_inherited(); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0