Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_enemy_attack_trihecta_circle_bounce

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

function scr_enemy_attack_trihecta_circle_bounce() //gml_Script_scr_enemy_attack_trihecta_circle_bounce { if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_bounce)) { var random_number = irandom_range(0, 1) if (random_number == 0) { random_number = -1 var bbox_var = obj_dialogue_box_battle_transformation_any.bbox_left } else bbox_var = obj_dialogue_box_battle_transformation_any.bbox_right for (i = 0; i <= 2; i += 1) instance_create((bbox_var + random_number * 15 + random_number * i * 22), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5), obj_battle_enemy_attack_trihecta_circle_bounce) } }
() //gml_Script_scr_enemy_attack_trihecta_circle_bounce
2
{
3
    if (!instance_exists(obj_battle_enemy_attack_trihecta_circle_bounce))
4
    {
5
        var random_number = irandom_range(0, 1)
6
        if (random_number == 0)
7
        {
8
            random_number = -1
9
            var bbox_var = obj_dialogue_box_battle_transformation_any.bbox_left
10
        }
11
        else
12
            bbox_var = obj_dialogue_box_battle_transformation_any.bbox_right
13
        for (i = 0; i <= 2; i += 1)
14
            instance_create((bbox_var + random_number * 15 + random_number * i * 22), (obj_dialogue_box_battle_transformation_any.bbox_bottom - 5), obj_battle_enemy_attack_trihecta_circle_bounce)
15
    }
16
}