Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_phase_2_p1_ribbon_lantern_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (!fade_out)
4
{
5
    if (image_alpha < 1)
6
        image_alpha += 0.1
7
    else if (!alarm[0])
8
        alarm[0] = 5
alarm[0]

if live_call() return global.live_result; var bullet_spawn_timer = 30 var bullet_speed = 3 bullet_spawn_direction = 0 if (x > 320) bullet_spawn_direction = 180 var fireball = instance_create_depth(x, y, (depth + 1), obj_ceroba_attack_fireball) fireball.direction = bullet_spawn_direction fireball.speed = bullet_speed image_xscale = 1.5 image_yscale = 1.5 alarm[0] = bullet_spawn_timer
9
}
10
else if (image_alpha > 0)
11
    image_alpha -= 0.1
12
else
13
    instance_destroy()
14
if ((vspeed > 0 && y > y_target) || (vspeed < 0 && y < y_target))
15
    fade_out = true
16
image_xscale = lerp(image_xscale, 1, 0.15)
17
image_yscale = image_xscale