Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_kris_putonheadobj_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 2)
2
{
3
    snd_play(snd_swallow);
4
    
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(headobj.x, headobj.y, 5);
5
    myinteract = 3;
6
}
7
if (myinteract == 3)
8
{
9
    timer++;
10
    if (timer >= 6)
11
    {
12
        snd_play(snd_coin);
13
        headobj.visible = 1;
14
        global.interact = 0;
15
        myinteract = 0;
16
        instance_destroy();
17
    }
18
}
19
if (myinteract == 1)
20
    myinteract = 2;