Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_attack_bullet_spawner_mask_Alarm_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (instance_exists(obj_ceroba_attack_bullet_spawner_spawner) && obj_ceroba_attack_bullet_spawner_spawner.attack_stop == true)
4
    exit;
5
var bullet_number = 6;
6
var bullet_spawn_timer = 12;
7
var bullet_speed = 4;
8
if (global.hotland_flag[2] == 2)
9
{
10
    bullet_number = 6;
11
    bullet_spawn_timer = 10;
12
}
13
if (global.hotland_flag[2] == 3)
14
{
15
    bullet_number = 6;
16
    bullet_spawn_timer = 8;
17
}
18
var i = bullet_spawn_direction;
19
while (i < (360 + bullet_spawn_direction))
20
{
21
    var fireball = instance_create_depth(x, y, depth + 1, obj_ceroba_attack_fireball);
22
    ds_list_add(fireball_list, fireball);
23
    fireball.direction = i;
24
    fireball.speed = bullet_speed;
25
    i += (360 / bullet_number);
26
}
27
bullet_spawn_direction += bullet_spawn_direction_inc;
28
image_xscale = 1.5;
29
image_yscale = 1.5;
30
alarm[0] = bullet_spawn_timer;
gml_Object_obj_ceroba_attack_bullet_spawner_mask_Alarm_0.gml

if (live_call()) return global.live_result; if (instance_exists(obj_ceroba_attack_bullet_spawner_spawner) && obj_ceroba_attack_bullet_spawner_spawner.attack_stop == true) exit; var bullet_number = 6; var bullet_spawn_timer = 12; var bullet_speed = 4; if (global.hotland_flag[2] == 2) { bullet_number = 6; bullet_spawn_timer = 10; } if (global.hotland_flag[2] == 3) { bullet_number = 6; bullet_spawn_timer = 8; } var i = bullet_spawn_direction; while (i < (360 + bullet_spawn_direction)) { var fireball = instance_create_depth(x, y, depth + 1, obj_ceroba_attack_fireball); ds_list_add(fireball_list, fireball); fireball.direction = i; fireball.speed = bullet_speed; i += (360 / bullet_number); } bullet_spawn_direction += bullet_spawn_direction_inc; image_xscale = 1.5; image_yscale = 1.5; alarm[0] = bullet_spawn_timer;