plat_name = stringsetloc("Litebuster", "obj_plat_enm_book_simple_slash_Create_0_gml_4_0"); plat_desc = stringsetloc("This'll deal some damage.", "obj_plat_enm_book_simple_slash_Create_0_gml_5_0"); event_inherited(); state = 0; sprite_index = spr_enemy_book_flyup; timer = 0; hit = 0; timer = 0; hp = 1; aim = 0; fallspeed = 0; flapcall = -1; dist = 0; alive = true; coindrops = 3; substate = 0; h_knockback = image_xscale * -8; v_knockback = -6; damage = 30; kb_strength = 12; spawn_effect = false; knockback_on_death = true; deathmarker_lifetime = 10; deathmarker_spin = 0; windimmune = true; init = false; homex = 0; homey = 0; petal_color = 16711935; state_set = function(arg0) { timer = 0; state = arg0; substate = 0; }; get_hurt = function(arg0) { if (!instance_exists(obj_plat_player)) exit; if (paused || custom_paused) exit; if (state >= 1 && alive) { spawn_death_coins(); with (arg0) { if (!hit_check(other.id)) exit; } hp--; hit = 1; spawn_hit_petals(3, point_direction(arg0.x, arg0.y, x, y), 1); with (arg0) do_hbx_hit(-4, -1, 1.5 - ((0.5 * other.hp) / other.__max_hp)); state = 10; alive = false; blocked = true; sprite_index = spr_enemy_book_flyup; alarm[2] = obj_plat_game.hitstop; var _px = obj_plat_player.x - (sign(obj_plat_player.image_xscale) * 10); var _py = obj_plat_player.y + 20; _dir = point_direction(_px, _py, x, y); h_knockback = lengthdir_x(20, _dir); v_knockback = lengthdir_y(20, _dir); deathmarker_spin = sign(-h_knockback) * 40; } };