1 |
function scr_enemy_timer_attacks_cactony_soloscr_enemy_timer_attacks_cactony_solofunction scr_enemy_timer_attacks_cactony_solo() //gml_Script_scr_enemy_timer_attacks_cactony_solo
{
var enemy_attack = global.enemy_attack
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true)
{
if (enemy_attack == "Cactony Needle Side" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_side_generator)))
{
var script_tgt = obj_dialogue_box_battle_transformation_any
scr_create_attack_boundary((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0)
instance_create(0, 0, obj_battle_enemy_attack_cactony_needle_side_generator)
}
else if (enemy_attack == "Cactony Needle Top" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_top_generator)))
{
script_tgt = obj_dialogue_box_battle_transformation_any
scr_create_attack_boundary((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0)
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 52), obj_battle_enemy_attack_cactony_needle_top_generator)
}
if (enemy_attack == "Cactony Needle Green" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_green_generator)))
instance_create(0, 0, obj_battle_enemy_attack_cactony_needle_green_generator)
}
} () //gml_Script_scr_enemy_timer_attacks_cactony_solo |
2 |
{ |
3 |
var enemy_attack = global.enemy_attack |
4 |
if (instance_exists(obj_dialogue_box_battle_transformation_any) && obj_heart_battle_fighting_parent.moveable == true) |
5 |
{ |
6 |
if (enemy_attack == "Cactony Needle Side" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_side_generator))) |
7 |
{ |
8 |
var script_tgt = obj_dialogue_box_battle_transformation_any |
9 |
scr_create_attack_boundaryscr_create_attack_boundaryfunction scr_create_attack_boundary(argument0, argument1, argument2, argument3, argument4, argument5) //gml_Script_scr_create_attack_boundary
{
instance_create(0, 0, obj_attack_boundary_creator)
obj_attack_boundary_creator.create_x = argument0
obj_attack_boundary_creator.create_y = argument1
obj_attack_boundary_creator.width = argument2
obj_attack_boundary_creator.height = argument3
obj_attack_boundary_creator.thickness = argument4
obj_attack_boundary_creator.unique_id = argument5
with (obj_attack_boundary_creator)
event_user(0)
} ((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0) |
10 |
instance_create(0, 0, obj_battle_enemy_attack_cactony_needle_side_generator) |
11 |
} |
12 |
else if (enemy_attack == "Cactony Needle Top" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_top_generator))) |
13 |
{ |
14 |
script_tgt = obj_dialogue_box_battle_transformation_any |
15 |
scr_create_attack_boundaryscr_create_attack_boundaryfunction scr_create_attack_boundary(argument0, argument1, argument2, argument3, argument4, argument5) //gml_Script_scr_create_attack_boundary
{
instance_create(0, 0, obj_attack_boundary_creator)
obj_attack_boundary_creator.create_x = argument0
obj_attack_boundary_creator.create_y = argument1
obj_attack_boundary_creator.width = argument2
obj_attack_boundary_creator.height = argument3
obj_attack_boundary_creator.thickness = argument4
obj_attack_boundary_creator.unique_id = argument5
with (obj_attack_boundary_creator)
event_user(0)
} ((script_tgt.bbox_left + 5), (script_tgt.bbox_top + 5), (script_tgt.sprite_width - 10), (script_tgt.sprite_height - 10), 20, 0) |
16 |
instance_create(round(obj_dialogue_box_battle_transformation_any.bbox_left + (obj_dialogue_box_battle_transformation_any.bbox_right - obj_dialogue_box_battle_transformation_any.bbox_left) / 2), (obj_dialogue_box_battle_transformation_any.bbox_top - 52), obj_battle_enemy_attack_cactony_needle_top_generator) |
17 |
} |
18 |
if (enemy_attack == "Cactony Needle Green" && (!instance_exists(obj_battle_enemy_attack_cactony_needle_green_generator))) |
19 |
instance_create(0, 0, obj_battle_enemy_attack_cactony_needle_green_generator) |
20 |
} |
21 |
} |