Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_wobblything_slide_Step_0

(view raw script w/o annotations or w/e)
1
if (wobbled == 0)
2
{
3
    if (instance_exists(obj_mainchara))
4
    {
5
        if (obj_mainchara.y > (y - 10) && obj_mainchara.y < (y + 50))
6
        {
7
            image_speed = 0.334;
8
            if (global.flag[8 simplify_vfx] == 1)
9
                image_speed = 0.2;
10
            wobbled = 1;
11
        }
12
    }
13
}
14
if (y < (__view_get(e__VW.YView, 0) - 60))
15
{
16
    wobbled = 0;
17
    image_speed = 0;
18
    image_index = 0;
19
    y += 960;
20
}
21
22
enum e__VW
23
{
24
    XView,
25
    YView,
26
    WView,
27
    HView,
28
    Angle,
29
    HBorder,
30
    VBorder,
31
    HSpeed,
32
    VSpeed,
33
    Object,
34
    Visible,
35
    XPort,
36
    YPort,
37
    WPort,
38
    HPort,
39
    Camera,
40
    SurfaceID
41
}