Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_quote_controller_flashback_02_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
        cutscene_wait(2)
7
        break
8
    case 1:
9
        instance_create(402, 90, obj_quote_bubble_battle_yellow_2)
10
        instance_create_depth(0, 0, (obj_quote_bubble_battle_yellow_2.depth - 1), obj_quote_battle_ceroba_flashback_02)
11
        cutscene_advance()
12
        break
13
    case 2:
14
        if (!instance_exists(obj_quote_battle_ceroba_flashback_02))
15
            cutscene_advance()
16
        break
17
    case 3:
18
        obj_ceroba_body_pacifist_phase_2.image_speed = 1
19
        cutscene_advance()
20
        break
21
    case 4:
22
        if (obj_ceroba_body_pacifist_phase_2.sprite_index == spr_ceroba_p2_get_up_3 && obj_ceroba_body_pacifist_phase_2.image_index >= 6)
23
        {
24
            obj_ceroba_body_pacifist_phase_2.image_index = 6
25
            obj_ceroba_body_pacifist_phase_2.image_speed = 0
26
            cutscene_advance()
27
        }
28
        break
29
    case 5:
30
        cutscene_wait(1)
31
        break
32
    case 6:
33
        instance_create(402, 90, obj_quote_bubble_battle_yellow_2)
34
        instance_create_depth(0, 0, (obj_quote_bubble_battle_yellow_2.depth - 1), obj_quote_battle_ceroba_flashback_02b)
35
        cutscene_advance()
36
        break
37
    case 7:
38
        if (!audio_is_playing(mus_mothers_love_phase_3_buildup))
39
            audio_play_sound(mus_mothers_love_phase_3_buildup, 1, 0)
40
        if cutscene_wait(3.11)
41
        {
42
            obj_ceroba_body_pacifist_phase_2.image_speed = 1
43
            instance_destroy(obj_quote_battle_ceroba_flashback_02b)
44
            instance_destroy(obj_quote_bubble_battle)
45
            instance_destroy()
46
        }
47
        break
48
}