sDebris 0 -1 5 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 alarm[0] = 40 + random(30); rotspeed = -10 + random(20); image_index = round(random(sprite_get_number(sprite_index) - 1)); image_speed = 0; direction = 180 - random(180); speed = 0.5 + random(6); gravity = 0.2; gravity_direction = 270; canbounce = 1; alarm[1] = 1; inwater = 0; playsound = 1; 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; } if (global.waterlevel != 0) { if (global.watertype == false && instance_exists(oWater)) { if (y > global.waterlevel + oWater.yoffset) inwater = 1; if (y < global.waterlevel + oWater.yoffset) inwater = 0; } } 1 603 7 0 0 -1 2 self 0 0 1 canbounce = 1; 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) { if (global.watertype == false && instance_exists(oWater)) { if (y > global.waterlevel + oWater.yoffset) { if (!inwater) { inwater = 1; speed *= 0.5; instance_create(x, y, oSmallSplash); } inwater = 1; } if (y < global.waterlevel + oWater.yoffset) { if (inwater) { inwater = 0; instance_create(x, y, oSmallSplash); } inwater = 0; } } } if (!inwater) { gravity = 0.2; } else gravity = 0.1; 1 603 7 0 0 -1 2 self 0 0 1 if (canbounce) { move_bounce_all(0); speed *= 0.5; if (speed > 0.5) rotspeed *= -1; if (playsound) { if (speed > 1 && random(1) < 0.5) { snd = floor(random(3)); switch (snd) { case 0: PlaySoundVisible(73, x, y); break; case 1: PlaySoundVisible(74, x, y); break; case 2: PlaySoundVisible(75, x, y); break; } } } } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1