Deltarune script viewer

← back to main script listing

gml_Object_obj_move_actor_Other_18

(view raw script w/o annotations or w/e)
1
dothis = 1;
2
if (global.chapter == 2)
3
{
4
    if (global.plot < 6)
5
        dothis = 0;
6
    if (instance_exists(obj_ch2_scene4))
7
        dothis = 0;
8
    if (instance_exists(obj_ch2_scene6))
9
        dothis = 0;
10
    if (instance_exists(obj_ch2_scene7))
11
        dothis = 0;
12
}
13
if (dothis == 1)
14
{
15
    if (init == 0)
16
    {
17
        init = 1;
18
        if (direction_word != "nothing")
19
        {
20
            if (direction_word == "l")
21
                direction = 180;
22
            if (direction_word == "d")
23
                direction = 270;
24
            if (direction_word == "r")
25
                direction = 0;
26
            if (direction_word == "u")
27
                direction = 90;
28
        }
29
        target.speed = speed;
30
        target.direction = direction;
31
    }
32
}