event_inherited(); difficulty = 0; hspeed = 3; hp = 80; aim = 0; aim_error = 0; x_home = xstart; y_home = ystart; last_bbl = 0; last_bbr = 0; last_bbt = 0; last_bbb = 0; last_bbc = 0; coindrops = 30; size = 3; u_alpha = shader_get_uniform(shd_chromatic_reflection, "iAlpha"); u_patternangle = shader_get_uniform(shd_chromatic_reflection, "iPatternAngle"); u_patterncount = shader_get_uniform(shd_chromatic_reflection, "iPatternCount"); u_holoangle = shader_get_uniform(shd_chromatic_reflection, "iHoloAngle"); u_time = shader_get_uniform(shd_chromatic_reflection, "iTime"); despawn_timer = 0; target_angle = 0; talkcon = -1; attacking = false; my_camzone = -4; con = 0; contimer = 0; attacktimer = -1; hit = 0; image_speed = 0.25; gtime = 10; windimmune = true; contact_damage = 0; image_speed = 0; rotation_speed = 3; rotation_speed_target = 3; rotation_flip = 1; last_psi = 0; stored_speed = 0; attackstyle = 0; shaketimer = 0; assist_enemy = -4; is_buffed = false; buff_timer = 0; _remx = 0; _remy = 0; init = 0; position_index = 0; attackvolley = 0; remaining_combo = 0; remaining_combo_max = 6; if (simple) { con = 2; hspeed = 0; } su_act.blocked = true; clear_targets = function() { for (var i = 0; i < array_length(targetlist); i++) { with (targetlist[i]) instance_destroy(); } targetlist = []; }; spawn_cakesmoke = function(arg0) { var xx = x + lengthdir_x(88, image_angle); var yy = y + lengthdir_y(88, image_angle); var amp = 1; var dist = 50; var xxx = xx + lengthdir_x(dist, image_angle); var yyy = yy + lengthdir_y(dist, image_angle); var smoke = instance_create(xxx, yyy, obj_animation); with (smoke) { depth = other.depth + 15; sprite_index = spr_poof_gun; image_speed = 0.5; scr_darksize(); image_angle = point_direction(other.x, other.y, x, y) - 90; } if (turnstun > -6) amp = 2; repeat (arg0) { dist = random_range(-40, 40); xxx = xx + lengthdir_y(dist, image_angle); yyy = yy + lengthdir_x(dist, image_angle); smoke = instance_create(xxx, yyy, obj_marker); with (smoke) { depth = other.depth + 10; sprite_index = spr_cakesmoke; scr_darksize(); direction = point_direction(other.x, other.y, x, y) + (random_range(-12, 12) * amp); speed = random_range(6, 12) * amp; friction = 0.3 + (0.2 * amp); gravity = -0.3; image_angle = random_range(0, 360); scr_lerpvar("image_alpha", 1, 0, random_range(30, 60)); scr_doom(self, 60); } } }; cam_min_x = 0; cam_max_x = 0; on_flower_ruined = function() { if (con == 0) { con = 1; contimer = 0; var psi = position_index; vspeed = 0; hspeed = 0; paused_spd = 0; snd_play(snd_b); scr_plat_barrier_enable(); var nearest = -4; var neardist = 0; with (obj_plat_camera) { cutscene = 1; with (obj_genmarker) { if (string_pos("camera", extflag) > 0) { if (nearest == -4 || abs(x - other.x) < neardist) { nearest = self; neardist = abs(x - other.x); } } } if (nearest.extflag == "camera3") other.position_index = 2; if (nearest.extflag == "camera2") other.position_index = 1; scr_pan_lerp(nearest.x - 320, nearest.y, 30); snd_free(global.currentsong[0]); scr_musicer("rudebuster_boss.ogg", undefined, undefined, undefined, 5); } } }; targetlist = []; apply_buff = function() { is_buffed = true; buff_timer = 0; var snd = snd_play(snd_power, 1, 0.2); snd_pitch_time(snd, 0.7, 50); var _of = scr_oflash(); _of.flashcolor = c_red; for (var i = 0; i < 9; i++) { var star = instance_create(x + lengthdir_x(45, i * 40), y + lengthdir_y(45, i * 40), obj_marker); with (star) { image_angle = random(360); depth = other.depth - 10; image_xscale = 2; image_yscale = 2; image_alpha = 2; image_speed = 0.25; direction = point_direction(other.x, other.y, x, y); speed = 6; friction = 0.2; sprite_index = spr_sparestar_anim; image_blend = c_orange; scr_doom(self, 30); scr_lerpvar("image_alpha", image_alpha, 0, 30, 1, "out"); } } }; auraalph = 1; turnstun = 0; ral_hook = instance_create(x, y, obj_ralsei_hook); ral_hook.owner = self; with (ral_hook) { hookscale = 0; sprite_index = other.sprite_index; depth = other.depth + 1; image_index = 1; image_speed = 0; menu_name = stringsetloc("Trigger", "obj_plat_enm_yellow_miniboss_slash_Create_0_gml_196_0"); image_angle = other.image_angle; image_xscale = other.image_xscale; image_yscale = other.image_yscale; can_cut_down = false; } petal_color = 65535; get_hurt = function() { };