function scr_flower_die(arg0 = 2, arg1 = 6, arg2 = 5, arg3 = 0, arg4 = true) { if (arg0 >= 3) { with (instance_create_depth(x, y, depth, obj_flowerdie_big)) { sprite_index = other.sprite_index; image_index = other.image_index; image_angle = other.image_angle; image_xscale = other.image_xscale; image_yscale = other.image_yscale; image_speed = other.image_speed; coindrops = arg3; use_image_speed = arg4; if (arg0 == 4) { wall_smash = true; if (other.image_xscale < 0) image_angle += 180; } } } else { with (instance_create_depth(x, y, depth, obj_flowerdie)) { speed = arg2; if (arg0 == 1) { sprite_index = spr_falling_petal; image_blend = c_gray; image_xscale = 2; image_yscale = 2; } amount = arg1; size = arg0; } if (arg0 == 1) instance_create_depth(x, y, depth - 5, obj_flowerdie_mini); if (arg3 == 0) exit; scr_plat_makecoins(x, y, -coindrops, 90, 90, 8, 4, depth); coindrops = 0; } }