Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_playerfall_Step_0

(view raw script w/o annotations or w/e)
1
script_execute(gml_Script_scr_depth)
2
if (image_index >= 16 && image_speed > 0)
3
{
4
    image_speed = 0
5
    image_index = 17
6
}
7
if (floor(image_index) == 10)
8
{
9
    image_speed = 0
10
    if (!alarm[0])
11
        alarm[0] = 10
alarm[0]

image_index = 11 image_speed = 0.2
12
}
13
if (floor(image_index) == 11)
14
{
15
    if (!audio_is_playing(snd_groundbreak))
16
        audio_play_sound(snd_groundbreak, 1, 0)
17
    shake = true
18
    alarm[1] = 1
alarm[1]

__view_set((0 << 0), 0, xview_orig) __view_set((1 << 0), 0, yview_orig) __view_set((0 << 0), 0, ((__view_get((0 << 0), 0)) + (irandom_range(-2, 2)))) __view_set((1 << 0), 0, ((__view_get((1 << 0), 0)) + (irandom_range(-2, 2)))) if (shake == true) alarm[1] = 1
19
    alarm[2] = 25
alarm[2]

shake = false
20
}