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;
gml_Object_obj_ceroba_phase_2_p1_ribbon_lantern_Alarm_0.gml

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
{
12
    image_alpha -= 0.1;
13
}
14
else
15
{
16
    instance_destroy();
17
}
18
if ((vspeed > 0 && y > y_target) || (vspeed < 0 && y < y_target))
19
    fade_out = true;
20
image_xscale = lerp(image_xscale, 1, 0.15);
21
image_yscale = image_xscale;