Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_charastoactors

(view raw script w/o annotations or w/e)
1
function 
scr_charastoactors
scr_charastoactors

function
scr_charastoactors()
{ with (obj_mainchara) { x = other.kr_actor.x; y = other.kr_actor.y; } with (obj_caterpillarchara) { if (name == "susie") { x = other.su_actor.x; y = other.su_actor.y; } else { x = other.ra_actor.x; y = other.ra_actor.y; } } }
()
2
{
3
    with (obj_mainchara)
4
    {
5
        x = other.kr_actor.x;
6
        y = other.kr_actor.y;
7
    }
8
    with (obj_caterpillarchara)
9
    {
10
        if (name == "susie")
11
        {
12
            x = other.su_actor.x;
13
            y = other.su_actor.y;
14
        }
15
        else
16
        {
17
            x = other.ra_actor.x;
18
            y = other.ra_actor.y;
19
        }
20
    }
21
}