Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_withered_flowey_1_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 1:
6
        var dialogue = instance_create_depth((camera_get_view_x(view_camera[0]) + 120), (y - 40), -9999, obj_dialogue_withered_floweys)
7
        with (dialogue)
8
        {
9
            message[0] = "* h-hello?"
10
            message[1] = "* where am i?"
11
        }
12
        scene++
13
        break
14
    case 2:
15
        if (!instance_exists(obj_dialogue_withered_floweys))
16
            scene++
17
        break
18
    case 3:
19
        cutscene_wait(1)
20
        break
21
    case 4:
22
        sprite_index = -4
23
        visible = true
24
        draw_alpha += 0.1
25
        if (draw_alpha >= 1)
26
            scene++
27
        break
28
    case 5:
29
        cutscene_wait(0.5)
30
        break
31
    case 6:
32
        cutscene_camera_move(980, obj_pl.y, 1)
33
        break
34
    case 7:
35
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
36
        scene++
37
        break
38
    case 8:
39
        if (obj_pl.x > camera_get_view_x(view_camera[0] + 160))
40
        {
41
            camera_set_view_target(view_camera[0], 1031)
42
            instance_destroy()
43
        }
44
        break
45
}