if (alarm[0]) { if (x > scr_get_box(2) && y > scr_get_box(1) && y < scr_get_box(3)) { if (loaded == 0) loaded = 1; } else if (loaded == 1) { loaded = -1; repeat (3 + irandom(1)) { with (instance_create(x + irandom_range(-4, 4), y + irandom_range(-4, 4), obj_bulletparent)) { sprite_index = spr_falling_petal; image_index = irandom(4); image_speed = 0.125 * choose(1, 0.5, 0.75); image_blend = c_gray; scr_darksize(); depth = other.depth + 1; direction = other.direction + random_range(-22.5, 22.5); speed = 4 + random(2); scr_lerpvar("hspeed", hspeed, 0, 48); gravity_direction = 270; gravity = 0.05 + random(0.05); image_xscale *= choose(1, -1); scr_lerpvar("image_alpha", 1, 0, 60); funct = function() { if (image_index > 0 && image_index < 4) x += 0.5; else x -= 0.5; }; scr_script_repeat(scr_use_funct, 64, 1); } } } }