Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rouxls_fallingblock_Step_0

(view raw script w/o annotations or w/e)
1
if (!bottomhit && (y + vspeed) > ((obj_growtangle.y + (obj_growtangle.sprite_width / 2)) - 20))
2
{
3
    y = (obj_growtangle.y + (obj_growtangle.sprite_width / 2)) - 20;
4
    obj_growtangle.y += 4;
5
    direction = random_range(30, 150);
6
    speed = random(3);
7
    d = instance_exists(obj_shake) ? 196 : instance_create(0, 0, obj_shake);
8
    d.shakex = ceil(2);
9
    d.shakey = ceil(2);
10
    snd_play(snd_screenshake);
11
    bottomhit = 1;
12
}
13
if (y > (__view_get(e__VW.YView, 0) + 580))
14
    instance_destroy();
15
16
enum e__VW
17
{
18
    XView,
19
    YView,
20
    WView,
21
    HView,
22
    Angle,
23
    HBorder,
24
    VBorder,
25
    HSpeed,
26
    VSpeed,
27
    Object,
28
    Visible,
29
    XPort,
30
    YPort,
31
    WPort,
32
    HPort,
33
    Camera,
34
    SurfaceID
35
}