sIceShard 0 -1 5 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 if (instance_number(oIceShard) > 60) instance_destroy(); alarm[0] = 40 + random(30); rotspeed = -10 + random(20); image_index = round(random(3)); image_speed = 0; direction = 170 - random(160); speed = 1 + random(5); gravity = 0.2; gravity_direction = 270; alarm[1] = 5 + random(50); scale = 0.2 + random(0.8); if (collision_line(x - 2, y, x + 2, y, oSolid, false, false) > 0 && collision_point(x - 10, y, oSolid, false, false) < 0) { x -= 10; exit; } if (collision_line(x - 2, y, x + 2, y, oSolid, false, false) > 0 && collision_point(x + 10, y, oSolid, false, false) < 0) { x += 10; exit; } if (collision_line(x, y - 2, x, y + 2, oSolid, false, false) > 0 && collision_point(x, y + 10, oSolid, false, false) < 0) { y += 10; exit; } if (collision_line(x, y - 2, x, y + 2, oSolid, false, false) > 0 && collision_point(x, y - 10, oSolid, false, false) < 0) { y -= 10; exit; } 1 603 7 0 0 -1 2 self 0 0 1 spark = instance_create(x + floor(random(16) - 8), y + floor(random(16) - 8), oFXAnimSpark); spark.gravity_direction = 270; spark.gravity = 0.1; spark.sprite_index = sIBeamFXA; spark.image_speed = 0.3; spark.image_index = 0; spark.depth = -10; 1 603 7 0 0 -1 2 self 0 0 1 if (image_alpha > 0) { image_alpha -= 0.1; } else instance_destroy(); alarm[0] = 1; 1 603 7 0 0 -1 2 self 0 0 1 image_angle += rotspeed; if (global.waterlevel != 0 && y > global.waterlevel + global.wateroffset) { gravity = 0.05; friction = 0.1; } else { gravity = 0.2; friction = 0; } 1 603 7 0 0 -1 2 self 0 0 1 move_bounce_all(0); speed *= 0.6; if (speed > 0.5) rotspeed *= -1; 1 603 7 0 0 -1 2 self 0 0 1 draw_sprite_ext(sIceShard, -1, x, y, scale, scale, image_angle, -1, image_alpha); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0