Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_guns_horizontal_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
var gun_top_y = box.y - 25;
5
var gun_mid_y = box.y;
6
var gun_bot_y = box.y + 25;
7
var gun_left_x = box.bbox_left - 60;
8
var gun_right_x = box.bbox_right + 60;
9
switch (counter_current)
10
{
11
    case 0:
12
        instance_create(gun_left_x, gun_mid_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
13
        counter_current++;
14
        break;
15
    case 1:
16
        counter_timer_max = 22.5;
17
        break;
18
    case 2:
19
        instance_create(gun_left_x, gun_top_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
20
        instance_create(gun_right_x, gun_bot_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
21
        counter_current++;
22
        break;
23
    case 3:
24
        counter_timer_max = 22.5;
25
        break;
26
    case 4:
27
        instance_create(gun_left_x, gun_mid_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
28
        counter_current++;
29
        break;
30
    case 5:
31
        counter_timer_max = 22.5;
32
        break;
33
    case 6:
34
        instance_create(gun_right_x, gun_mid_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
35
        counter_current++;
36
    case 7:
37
        counter_timer_max = 22.5;
38
        break;
39
    case 8:
40
        instance_create(gun_left_x, gun_bot_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
41
        instance_create(gun_right_x, gun_top_y, obj_battle_enemy_attack_starlo_guns_horizontal_gun);
42
        counter_current++;
43
        break;
44
    case 9:
45
        counter_timer_max = 22.5;
46
        break;
47
    case 10:
48
        instance_destroy();
49
        break;
50
}
51
if (counter_timer_max == 0)
52
    exit;
53
if (counter_timer < counter_timer_max)
54
{
55
    counter_timer++;
56
}
57
else
58
{
59
    counter_timer = 0;
60
    counter_current += 1;
61
}