Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_puzzle_ice_cube_overworld_yellow_Step_0

(view raw script w/o annotations or w/e)
1
if (shrink == true)
2
{
3
    image_xscale -= lerp(0, image_xscale, 0.015)
4
    image_yscale -= lerp(0, image_yscale, 0.015)
5
}
6
if (global.snowdin_flag[2] == 0)
7
{
8
    if (image_xscale < 0.85)
9
    {
10
        if (global.snowdin_flag[2] == 0)
11
        {
12
            obj_puzzle_water_meter_overworld_yellow.fill = 1
13
            if (!instance_exists(part_drops_puzzle))
14
            {
15
                instance_create(231, 323, part_drops_puzzle)
16
                audio_play_sound(snd_water_fill, 1, 0)
17
            }
18
        }
19
    }
20
    if (image_xscale < 0.75)
21
    {
22
        global.snowdin_flag[2] = 1
23
        shrink = false
24
        active = false
25
        obj_puzzle_controller_overworld_yellow.camera_end = true
26
        audio_stop_sound(snd_puzzle_woodmove)
27
        instance_destroy(part_smoke_puzzle)
28
    }
29
}
30
if (image_xscale < 0.35)
31
{
32
    obj_puzzle_water_meter_overworld_yellow.fill = 2
33
    if (!instance_exists(part_drops_puzzle))
34
    {
35
        instance_create(231, 323, part_drops_puzzle)
36
        audio_play_sound(snd_water_fill_2, 1, 0)
37
    }
38
}
39
if (image_xscale < 0.2)
40
{
41
    obj_puzzle_controller_overworld_yellow.camera_end = true
42
    audio_stop_sound(snd_puzzle_woodmove)
43
    instance_destroy(part_smoke_puzzle)
44
    instance_destroy()
45
}
46
if (global.snowdin_flag[2] == 2)
47
    instance_destroy()