with (other) scr_plat_vfx(3352); with (targeted_fruit) { var splashmarker = instance_create_depth(x + (0.5 * sprite_width), y + (0.5 * sprite_height), depth - 2, obj_animation); with (splashmarker) { sprite_index = spr_darkfruit_tree_fruit_explosion; image_speed = 1; scr_darksize(); } var su = -4; with (obj_plat_follower) { if (name == "susie") { var _cooldown_text = stringsetloc("EATING", "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_15_0"); scr_plat_set_cooldown(_cooldown_text, 60); force_animation(7060); custom_behaviour(undefined, 60); image_speed = 0; su = self; } } var dir = point_direction(x, y, su.x, su.y); for (var i = 0; i < 20; i++) { var splash = instance_create_depth(x + (0.5 * sprite_width), y + (0.5 * sprite_height), depth - 1, obj_darkfruit_tree_plat_glob); with (splash) { direction = random_range(dir - 100, dir + 100); speed = random_range(5, 12); image_angle = direction; } } if (!d_plat_exists(7)) { if (other.fruits_hit == 0) { scr_speaker("susie"); msgsetsubloc(0, "\\E7* Mmm^1, fresh from the juice.", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_35_0"); d_make_plat(0, 7); } else if (other.fruits_hit == 1) { scr_speaker("susie"); msgsetsubloc(0, "\\E7* Better the second time.", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_39_0"); d_make_plat(0, 7); } else { scr_speaker("susie"); msgsetsubloc(0, "\\E7* Cool^1! I wrecked the tree!", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_43_0"); scr_anyface_next("ralsei", "U"); msgnextsubloc("\\EU* ...", (global.lang == "ja") ? stringset("&\t\t\t") : stringset("&"), "obj_darkfruit_tree_plat_slash_Collision_obj_plat_susieaxe_hbx_gml_45_0"); d_make_plat(0, 7); } } instance_destroy(); } fruits_hit++; with (obj_plat_follower) { if (name == "ralsei") { if (is_platform_mode) ralsei_fall_down(90); } } if (fruits_hit == 3) wreck_tree(); scr_shakeobj();