Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_finale_checker_Step_0

(view raw script w/o annotations or w/e)
1
var counter_timer_max = 0;
2
var player_soul = 2979;
3
var box = 3154;
4
switch (counter_current)
5
{
6
    case 0:
7
        instance_create(box.bbox_left - 20, box.bbox_top - 20, obj_battle_enemy_attack_starlo_bullet_rain_gun);
8
        instance_create(box.bbox_right + 20, box.bbox_top - 20, obj_battle_enemy_attack_starlo_bullet_rain_gun);
9
        counter_current++;
10
        break;
11
    case 1:
12
        counter_timer_max = 22.5;
13
        break;
14
    case 2:
15
        instance_create(box.bbox_left - 20, box.bbox_top - 20, obj_battle_enemy_attack_starlo_bullet_rain_gun);
16
        instance_create(box.bbox_left - 20, box.bbox_bottom + 20, obj_battle_enemy_attack_starlo_bullet_rain_gun);
17
        counter_current++;
18
        break;
19
    case 3:
20
        counter_timer_max = 15;
21
        break;
22
    case 4:
23
        instance_create(box.bbox_left + 40, box.bbox_top - 20, obj_battle_enemy_attack_starlo_dynamite_vertical);
24
        counter_current++;
25
        break;
26
    case 5:
27
        counter_timer_max = 12;
28
        break;
29
    case 6:
30
        instance_create(box.bbox_right - 40, box.bbox_top - 20, obj_battle_enemy_attack_starlo_dynamite_vertical);
31
        counter_current++;
32
    case 7:
33
        counter_timer_max = 66;
34
        break;
35
    case 8:
36
        var gun_top_y = box.y - 25;
37
        var gun_mid_y = box.y;
38
        var gun_bot_y = box.y + 25;
39
        var gun_left_x = box.bbox_left - 60;
40
        var gun_right_x = box.bbox_right + 60;
41
        instance_create(gun_right_x, gun_top_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
42
        instance_create(gun_left_x, gun_bot_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
43
        instance_create(box.x - 30, box.bbox_top - 60, obj_battle_enemy_attack_starlo_guns_vertical_gun);
44
        instance_create(box.x + 30, box.bbox_top - 60, obj_battle_enemy_attack_starlo_guns_vertical_gun);
45
        counter_current++;
46
        break;
47
    case 9:
48
        counter_timer_max = 24;
49
        break;
50
    case 10:
51
        instance_create(box.bbox_right + 30, box.bbox_top, obj_battle_enemy_attack_starlo_dynamite_alt);
52
        counter_current++;
53
        break;
54
    case 11:
55
        counter_timer_max = 34.5;
56
        break;
57
    case 12:
58
        instance_create(box.bbox_left - 30, box.bbox_top, obj_battle_enemy_attack_starlo_dynamite_alt);
59
        counter_current++;
60
        break;
61
    case 13:
62
        counter_timer_max = 25;
63
        break;
64
    case 14:
65
        var gun_dir = 0;
66
        var gun_dir_inc = 72;
67
        for (var i = 0; i < 5; i++)
68
        {
69
            var xx = lengthdir_x(180, gun_dir);
70
            var yy = lengthdir_y(180, gun_dir);
71
            instance_create(320 + xx, 320 + yy, obj_battle_enemy_attack_starlo_finale_gun);
72
            gun_dir = gun_dir_inc * i;
73
        }
74
        counter_current++;
75
        break;
76
    case 15:
77
        counter_timer_max = 45;
78
        break;
79
    case 16:
80
        instance_destroy();
81
        break;
82
}
83
if (counter_timer_max == 0)
84
    exit;
85
if (counter_timer < counter_timer_max)
86
{
87
    counter_timer++;
88
}
89
else
90
{
91
    counter_timer = 0;
92
    counter_current += 1;
93
}