plat_name = stringsetloc("Litebuster", "obj_plat_enm_yellow_punishmentgun_slash_Create_0_gml_4_0"); plat_desc = stringsetloc("This'll deal some damage.", "obj_plat_enm_yellow_punishmentgun_slash_Create_0_gml_5_0"); event_inherited(); difficulty = 0; hspeed = 0; aim = 0; aim_error = 0; x_home = xstart; y_home = ystart; target_angle = 0; killed = false; stun_duration = 60; talkcon = -1; attacking = false; var ui = instance_create(0, 0, obj_plat_punishmentgun_ui); ui.depth = 1610; laser_width = 0; orbsize = 0; player_hurt = false; hurt_counter = 0; con = -1; contimer = 0; fx_timer = 0; fx_timer_decimal = 0; laser_timer = 0; charge_seconds = 0; charge_fx_speed = 0.2; charge_maxseconds = 90; 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; stored_speed = 0; attackstyle = 0; shaketimer = 0; movetype = 1; _remx = 0; _remy = 0; init = 0; target_angle = 90; hit_angle_speed = 0; hit_angle_offset = 0; position_index = 0; attackvolley = 0; auraalph = 0; phase = 0; gunspin = 0; chargesound = -4; coindrops = 30; spawn_death_coins = function() { if (coindrops == 0) exit; scr_plat_makecoins(x, y, -coindrops, 90, 90, 8, 4, depth); var seconds_remaining = ceil(charge_maxseconds - charge_seconds); var bonuscoins = 5 * floor(max(0, seconds_remaining - 10) / 10); if (bonuscoins > 0) scr_plat_makecoins(x, y, bonuscoins, 90, 90, 8, 4, depth); coindrops = 0; }; hp = 28; maxhp = hp; next_phase_hp = [25, 22, 17, 12, 5, -1]; on_phase_change = function(arg0) { }; rings_particle_system = instance_create_depth(x, y, depth + 1, obj_custom_particle_system); rings_particle_system.default_particle_data.fadeout_speed = 0.09090909090909091; rings_particle_system.default_particle_data.sprite_index = spr_yellow_punish_gun_rings; rings_particle_system.default_particle_data.image_alpha = 2; rings_particle_system.default_particle_data.image_speed = 0; rings_particle_system.default_particle_data.friction = 0.05; rings_particle_system.default_particle_data.lifetime = 22; rings_particle_system.auto_cleanup = false; rings_particle_system.particle_step_func = function(arg0) { if (!global.pause_plat) { arg0.custom_data[0] = arg0.custom_data[0] + 1; if (instance_exists(arg0.custom_data[1])) { var diff = arg0.custom_data[1].x - arg0.x; arg0.x += lerp(0, diff, 1 - (clamp(arg0.custom_data[0] - 4, 0, 10) / 10)); } arg0.image_xscale -= 0.045454545454545456; arg0.image_yscale -= 0.045454545454545456; } }; rings_particle_systembg = instance_create_depth(x, y, depth + 1, obj_custom_particle_system); rings_particle_systembg.default_particle_data.fadeout_speed = 0.09090909090909091; rings_particle_systembg.default_particle_data.sprite_index = spr_yellow_punish_gun_rings; rings_particle_systembg.default_particle_data.image_alpha = 2; rings_particle_systembg.default_particle_data.image_speed = 0; rings_particle_systembg.default_particle_data.friction = 0.05; rings_particle_systembg.default_particle_data.lifetime = 22; rings_particle_systembg.auto_cleanup = false; rings_particle_systembg.particle_step_func = function(arg0) { if (!global.pause_plat) { arg0.custom_data[0] = arg0.custom_data[0] + 1; if (instance_exists(arg0.custom_data[1])) { var diff = arg0.custom_data[1].x - arg0.x; arg0.x += lerp(0, diff * 2, 1 - (clamp(arg0.custom_data[0] - 4, 0, 10) / 10)); } arg0.image_xscale -= 0.045454545454545456; arg0.image_yscale -= 0.045454545454545456; } }; rings_particle_struct = { image_blend: c_white, image_xscale: 2, image_yscale: 2, hspeed: 0, vspeed: 0, image_angle: 0, image_index: 0, custom_data: [0, 0] }; chunks_particle_system = instance_create_depth(x, y, depth + 1, obj_custom_particle_system); chunks_particle_system.shader = 2; chunks_particle_system.shader2_greyscale_fade = 0; chunks_particle_system.default_particle_data.lifetime = 60; chunks_particle_system.default_particle_data.sprite_index = spr_punishgun_shard; chunks_particle_system.default_particle_data.image_alpha = 1; chunks_particle_system.default_particle_data.image_speed = 0; chunks_particle_system.default_particle_data.gravity = 1; chunks_particle_system.auto_cleanup = false; chunks_particle_system.particle_step_func = function(arg0) { if (!global.pause_plat) arg0.image_angle += (arg0.hspeed + arg0.vspeed) / 2; }; chunks_particle_struct = { hspeed: 0, vspeed: 0, image_angle: 0, image_index: 0 }; sparks_particle_system = instance_create_depth(x, y, depth + 1, obj_custom_particle_system); sparks_particle_system.default_particle_data.animation_mode = true; sparks_particle_system.default_particle_data.sprite_index = spr_vfx_twinkle; sparks_particle_system.default_particle_data.image_alpha = 1; sparks_particle_system.default_particle_data.image_speed = 0.5; sparks_particle_system.default_particle_data.friction = 0.1; sparks_particle_system.auto_cleanup = false; sparks_particle_struct = { hspeed: 0, vspeed: 0, image_xscale: 2, image_yscale: 2, image_blend: c_white }; petal_color = 65535; spawn_charge_effects = function() { var killtime = 22; var xbonus = 0.2; var col = merge_color(c_orange, c_red, charge_fx_speed * 0.3); var xx = lengthdir_x(1, image_angle + 180); var yy = lengthdir_y(1, image_angle + 180); rings_particle_system.depth = depth - 1; rings_particle_system.x = x - (120 * xx); rings_particle_system.y = y - (120 * yy); rings_particle_systembg.depth = depth + 1; rings_particle_systembg.x = x - (120 * xx); rings_particle_systembg.y = y - (120 * yy); rings_particle_struct.image_yscale = 2 + xbonus; rings_particle_struct.image_blend = col; rings_particle_struct.image_angle = ((image_angle + 45) % 90) - 45 - 90; rings_particle_struct.hspeed = 12 * xx; rings_particle_struct.vspeed = 12 * yy; rings_particle_struct.image_index = 0; rings_particle_struct.custom_data = [0, id]; rings_particle_system.emit(rings_particle_struct); rings_particle_struct.image_index = 1; rings_particle_systembg.emit(rings_particle_struct); }; get_hurt = function(arg0) { }; orbs = [];