Undertale script viewer

← back to main script listing

gml_Object_obj_boardride_a_Step_0

(view raw script w/o annotations or w/e)
1
if (active == 1 && global.interact == 0)
2
{
3
    if (collision_rectangle(x + 16, y + 2, x + 24, y + 18, obj_mainchara, 0, 1))
4
    {
5
        scr_tempsave
scr_tempsave

filechoicebk2 = global.filechoice; global.filechoice = 9; script_execute(scr_saveprocess); global.filechoice = filechoicebk2;
();
6
        global.interact = 1;
7
        global.phasing = 1;
8
        hspeed = 3;
9
        obj_mainchara.hspeed = 3;
10
        obj_mainchara.image_speed = 0;
11
        scr_musfadeout
scr_musfadeout

g = instance_create(0, 0, obj_musfadeout); if (argument0 == 0) argument0 = 0.05; g.fadespeed = argument0;
(0.006);
12
        global.currentsong = caster_load("music/ambientwater.ogg");
13
        caster_loop(global.currentsong, 0, 0.9);
14
        scr_musfadein
scr_musfadein

g = instance_create(0, 0, obj_musfadein); if (argument0 == 0) argument0 = 0.05; g.fadespeed = argument0;
(0.005);
15
        active = 2;
16
    }
17
}
18
if (active == 2 && x >= 1000)
19
{
20
    x = 1000;
21
    hspeed = 0;
22
    obj_mainchara.image_speed = 0.25;
23
    alarm[2] = 8;
24
    active = 3;
25
}
26
if (active == 4)
27
{
28
    obj_mainchara.hspeed = 0;
29
    obj_mainchara.image_speed = 0;
30
    global.interact = 0;
31
    active = 5;
32
    hspeed = -3;
33
    global.phasing = 0;
34
}