Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_miner_helmet_Step_0

(view raw script w/o annotations or w/e)
1
if place_meeting(x, y, obj_pl)
2
{
3
    base_x = obj_pl.x
4
    base_y = obj_pl.bbox_bottom
5
    slide_speed = 4
6
}
7
var dir = point_direction(base_x, base_y, x, y)
8
if place_free((x + (lengthdir_x(slide_speed, dir))), y)
9
    x += lengthdir_x(slide_speed, dir)
10
if place_free(x, (y + (lengthdir_y(slide_speed, dir))))
11
    y += lengthdir_y(slide_speed, dir)
12
if (slide_speed > 0)
13
    slide_speed -= 0.4
14
if (distance_to_object(obj_miner_bryan) < 10)
15
{
16
    instance_destroy()
17
    with (obj_miner_bryan)
18
    {
19
        sprite_index = spr_miner_bryan_helmet
20
        image_speed = 0.3
21
        global.dunes_flag[7] = 1
22
    }
23
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
24
}