Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_splattered_ralsei_Step_0

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

function
scr_depth_board()
{ depth = 1000000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); } function scr_board_depth() {
scr_depth_board();
}
();
2
if (y != 224)
3
{
4
    y = lerp(y, 224, 0.25);
5
    y = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y);
6
}
7
if (x >= 480)
8
{
9
    x = 480;
10
    stuck = true;
11
}
12
if (x <= 128)
13
{
14
    x = 128;
15
    stuck = true;
16
}
17
if (stuck == false)
18
{
19
    var kris = -4;
20
    var susie = -4;
21
    with (obj_mainchara_board)
22
    {
23
        if (name == "kris")
24
            kris = id;
25
        if (name == "susie")
26
            susie = id;
27
    }
28
    if (place_meeting(x, y, kris) || place_meeting(x, y, susie))
29
    {
30
        if (splatside == 1)
31
            x += 4;
32
        else
33
            x -= 4;
34
    }
35
}
36
if (obj_board_camera.con != 0 || instance_exists(obj_gameover_minigame))
37
{
38
    
scr_play_recording
scr_play_recording

function
scr_play_recording(arg0, arg1)
{ with (obj_mainchara_board) { if (name == arg0) { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg1; susierecordsave = false; } } }
("ralsei", "0W");
39
    with (obj_mainchara_board)
40
    {
41
        if (name == "ralsei")
42
        {
43
            x = other.x;
44
            y = other.y;
45
            visible = true;
46
        }
47
    }
48
    instance_destroy();
49
}