Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_1_rotating_bullets_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
var spawn_dist = 120
5
spawn_dir += (360 / bullet_count_max)
6
if (spawn_dir >= 360)
7
    spawn_dir -= 360
8
var bullet = instance_create_depth((battle_box.x + (lengthdir_x(spawn_dist, spawn_dir))), (battle_box.y + (lengthdir_y(spawn_dist, spawn_dir))), -150, obj_battle_enemy_attack_bullet_spawner)
9
bullet_count -= 1
10
if (bullet_count > 0)
11
    alarm[0] = 15
alarm[0]

if live_call() return global.live_result; var battle_box = obj_dialogue_box_battle_transformation_any var spawn_dist = 120 spawn_dir += (360 / bullet_count_max) if (spawn_dir >= 360) spawn_dir -= 360 var bullet = instance_create_depth((battle_box.x + (lengthdir_x(spawn_dist, spawn_dir))), (battle_box.y + (lengthdir_y(spawn_dist, spawn_dir))), -150, obj_battle_enemy_attack_bullet_spawner) bullet_count -= 1 if (bullet_count > 0) alarm[0] = 15 else scene = 1 if (!instance_exists(obj_ceroba_bullet_particle_controller)) instance_create(0, 0, obj_ceroba_bullet_particle_controller)
12
else
13
    scene = 1
14
if (!instance_exists(obj_ceroba_bullet_particle_controller))
15
    instance_create(0, 0, obj_ceroba_bullet_particle_controller)