Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_vine_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        if cutscene_wait(0.5)
7
        {
8
            audio_play_sound(snd_undertale_spearrise, 1, 0)
9
            vspeed = -24
10
        }
11
        break
12
    case 1:
13
        if (y <= (480 - (sprite_height - speed)))
14
        {
15
            x_last = x
16
            y_last = y
17
            scene++
18
        }
19
        break
20
    case 2:
21
        speed = 0
22
        x = x_last + (random_range(-2, 2))
23
        y = y_last + (random_range(-2, 2))
24
        cutscene_wait(0.3)
25
        break
26
    case 3:
27
        vspeed += 3
28
        if (y > 480)
29
            instance_destroy()
30
        break
31
}