event_inherited(); image_speed = 0; branch = instance_create(x, y, obj_ralsei_hook); with (branch) { sprite_index = spr_darkfruit_tree_big_branch; depth = other.depth - 1; menu_name = stringsetloc("Hang (Branch)", "obj_darkfruit_tree_plat_slash_Create_0_gml_11_0"); owner = other; image_xscale = other.image_xscale; image_yscale = other.image_yscale; hang_xoffset = 116 * image_xscale; hang_yoffset = 78 * image_xscale; can_cut_down = false; } _ROOM_STATE_FLAG = 1442; _TREE_SMASHED_BIT = 3; init = false; slope = -4; state = 0; timer = 0; fruits = []; targeted_fruit = -4; fruits_hit = scr_flag_get_ext(_ROOM_STATE_FLAG, 4) + scr_flag_get_ext(_ROOM_STATE_FLAG, 5) + scr_flag_get_ext(_ROOM_STATE_FLAG, 6); physics = 0; entity_gravity = 0; collision = 0; for (var i = 0; i < 3; i++) { if (scr_flag_get_ext(_ROOM_STATE_FLAG, i + 4) == 1) { fruits[i] = -4; } else { fruits[i] = scr_marker(x, y, spr_fruittree_fruits); with (fruits[i]) { flag = other._ROOM_STATE_FLAG; bit = i + 4; depth = other.depth - 1; image_xscale = other.image_xscale; image_yscale = other.image_yscale; state = 1; owner = other; scr_darksize(); image_index = i; image_speed = 0; fruitblast = function() { scr_flag_set_ext(flag, bit, 1); owner.targeted_fruit = self; if (obj_darkfruit_tree_plat.fruits_hit == 0) { scr_speaker("susie"); msgsetsubloc(0, "\\E9* Heh^1, check it!", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Create_0_gml_59_0"); d_make_plat(0, 6); scr_plat_susie_attack(self, false); } else { scr_plat_susie_attack_fast(self, false); } }; scr_configure_platmode_act(fruitblast, "su", stringsetloc("Fruitbuster", "obj_darkfruit_tree_plat_slash_Create_0_gml_67_0"), stringsetloc("Leave the fruit to me.", "obj_darkfruit_tree_plat_slash_Create_0_gml_68_0")); } } } wreck_tree = function() { for (var i = 0; i < 48; i++) { var bl = instance_create(x + (random_range(0.4, 0.6) * sprite_width), y + (random_range(0.15, 0.25) * sprite_height), obj_marker); with (bl) { sprite_index = choose(spr_bush_leaf_big, spr_bush_leaf2_big, spr_bush_leaf3_big, spr_bush_leaf, spr_bush_leaf2, spr_bush_leaf3); image_index = random_range(0, 99); hspeed = random_range(-15, 15); vspeed = random_range(-15, 15); image_blend = c_purple; image_speed = 0.3; scr_darksize(); var t = random_range(30, 120); scr_lerpvar("image_alpha", 1, 0, t); scr_lerpvar("hspeed", hspeed, 0, t, 7, "out"); scr_lerpvar("vspeed", vspeed, 0, t, 7, "out"); scr_doom(self, t); } } sprite_index = spr_darkfruit_tree_big_top_noleaves; with (branch) instance_destroy(); scr_plat_depthcast(); var stump = instance_create_depth(x, y, depth + 100, obj_marker); stump.sprite_index = spr_darkfruit_tree_big_bottom; stump.image_xscale = image_xscale; stump.image_yscale = image_yscale; state = 1; x += 160; y += 270; }; fruitoffsets = []; fruitoffsets[0] = [56, 14]; fruitoffsets[1] = [22, 36]; fruitoffsets[2] = [94, 24];