Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_phase_2_shield_reappear_old_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 (image_alpha < 1)
7
            image_alpha += 0.1
8
        else
9
            scene++
10
        break
11
    case 1:
12
        audio_play_sound(snd_undertale_flash, 1, 0)
13
        instance_create_depth(x, (y - 100), -1100, obj_ceroba_phase_2_bell_reappear)
14
        instance_create_depth((x + 80), (y - 20), -1100, obj_ceroba_phase_2_bell_reappear)
15
        instance_create_depth(x, (y + 70), -1100, obj_ceroba_phase_2_bell_reappear)
16
        instance_create_depth((x - 80), (y - 20), -1100, obj_ceroba_phase_2_bell_reappear)
17
        bullet_hit_draw_timer = 5
18
        scene++
19
        break
20
    case 2:
21
        image_speed = 1
22
        image_index = 0
23
        scene++
24
        break
25
    case 3:
26
        cutscene_wait(1)
27
        break
28
    case 4:
29
        if (image_alpha > 0)
30
            image_alpha -= 0.1
31
        else
32
        {
33
            obj_heart_battle_menu.image_alpha = 1
34
            instance_create(0, 0, obj_dialogue_battle_move_select_intro)
35
            instance_destroy()
36
        }
37
        break
38
}
39
40
if (bullet_hit_draw_timer > 0)
41
    bullet_hit_draw_timer--