Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_phase_1_rotating_bullets_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
soul = 2979
4
bullet_count = 4
5
bullet_count_max = 4
6
spawn_dir = irandom_range(0, 360)
7
spin_speed = 6
8
scene = 0
9
cutscene_timer = 0
10
alarm[0] = 20
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)
11
alarm[1]