Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_attack_fire_pillar_top_special_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var battle_box = 3154;
4
switch (scene)
5
{
6
    case -1:
7
        if (!instance_exists(obj_ceroba_pillar_warning_special))
8
            scene++;
9
        break;
10
    case 0:
11
        var y_target = battle_box.bbox_top + 30;
12
        y = lerp(y, y_target, 0.15);
13
        if (abs(y - y_target) < 0.1)
14
        {
15
            scene++;
16
            y = y_target;
17
        }
18
        break;
19
    case 1:
20
        cutscene_wait(loop_duration);
21
        break;
22
    case 2:
23
        vspeed += 1;
24
        if (y > (battle_box.bbox_bottom + 20))
25
            instance_destroy();
26
        break;
27
}