Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_attack_talon_giant_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
sprite_set_offset(spr_martlet_attack_talon_giant, 58, 0);
4
switch (scene)
5
{
6
    case 0:
7
        if (image_alpha < 1)
8
            image_alpha += 0.15;
9
        vspeed -= 0.15;
10
        cutscene_wait(0.4);
11
        break;
12
    case 1:
13
        if (vspeed < vspeed_max)
14
            vspeed = lerp(vspeed, vspeed_max + 0.1, 0.15);
15
        else
16
            vspeed = vspeed_max;
17
        break;
18
}
19
if (y > (battle_box.bbox_bottom - 140))
20
{
21
    vspeed = lerp(vspeed, 0, 0.15);
22
    image_alpha -= 0.1;
23
    if (image_alpha <= 0)
24
        vspeed = 0;
25
}