Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_train_basket_Step_0

(view raw script w/o annotations or w/e)
1
if (hit)
2
    exit;
3
if (place_meeting(x, y, obj_train_piece_parent))
4
{
5
    hit = true;
6
    snd_play(snd_impact);
7
    with (ball1)
8
    {
9
        depth = -11;
10
        fall_x = x - 20;
11
        fall_y = y + 15;
12
        fall_height = 10;
13
        fall_duration = 16;
14
        falling = true;
15
    }
16
    with (ball2)
17
    {
18
        depth = -11;
19
        fall_x = x + 10;
20
        fall_y = y + 20;
21
        fall_height = 10;
22
        fall_duration = 12;
23
        falling = true;
24
    }
25
    with (ball3)
26
    {
27
        depth = -11;
28
        fall_x = x;
29
        fall_y = y + 50;
30
        fall_height = 20;
31
        fall_duration = 20;
32
        falling = true;
33
    }
34
}