Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_insomnitot_zzz

(view raw script w/o annotations or w/e)
1
function scr_enemy_attack_insomnitot_zzz
scr_enemy_attack_insomnitot_zzz

function scr_enemy_attack_insomnitot_zzz() //gml_Script_scr_enemy_attack_insomnitot_zzz { global.attack_counter_max = 20 if (global.attack_counter == 0) { var distance_factor = 4 instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor), obj_battle_enemy_attack_insomnitot_zzz_big) instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 2 + obj_battle_enemy_attack_insomnitot_zzz_big.sprite_height), obj_battle_enemy_attack_insomnitot_zzz_medium) instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 3 + obj_battle_enemy_attack_insomnitot_zzz_medium.sprite_height * 2), obj_battle_enemy_attack_insomnitot_zzz_small) } }
() //gml_Script_scr_enemy_attack_insomnitot_zzz
2
{
3
    global.attack_counter_max = 20
4
    if (global.attack_counter == 0)
5
    {
6
        var distance_factor = 4
7
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor), obj_battle_enemy_attack_insomnitot_zzz_big)
8
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 2 + obj_battle_enemy_attack_insomnitot_zzz_big.sprite_height), obj_battle_enemy_attack_insomnitot_zzz_medium)
9
        instance_create(obj_heart_battle_fighting_parent.x, (obj_dialogue_box_battle_transformation_any.bbox_bottom + 8 + distance_factor * 3 + obj_battle_enemy_attack_insomnitot_zzz_medium.sprite_height * 2), obj_battle_enemy_attack_insomnitot_zzz_small)
10
    }
11
}