Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_asgore_soul_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
        shake_int += 0.01
7
        direction = point_direction(x, y, obj_player_npc.x, obj_player_npc.y)
8
        cutscene_wait(3.5)
9
        break
10
    case 2:
11
        circle_alpha = 1
12
        shake_int = 0
13
        x = xstart
14
        y = ystart
15
        audio_play_sound(snd_undertale_flash, 1, 0)
16
        cutscene_advance()
17
        break
18
    case 3:
19
        cutscene_wait(1.5)
20
        break
21
    case 4:
22
        approach_int += 0.1
23
        if place_meeting(x, y, obj_player_npc)
24
        {
25
            approach_int = 0
26
            cutscene_advance()
27
            image_alpha = 0
28
            clover_overlay_alpha = 1
29
            audio_play_sound(snd_heal, 1, 0)
30
        }
31
        break
32
    case 5:
33
        if (clover_overlay_alpha <= 0)
34
            instance_destroy()
35
        break
36
}
37
38
if (circle_alpha > 0)
39
{
40
    circle_alpha -= 0.1
41
    circle_radius += 5
42
}
43
if (clover_overlay_alpha > 0)
44
    clover_overlay_alpha -= 0.15
45
else
46
    clover_overlay_alpha = 0
47
if (approach_int > 0)
48
    speed = approach_int