Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_shutta_hand_Step_0

(view raw script w/o annotations or w/e)
1
if (wobbled)
2
    exit;
3
if (!i_ex(obj_mainchara))
4
    exit;
5
var _on_screen = rectangle_in_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, camerax(), cameray(), camerax() + view_wport[0], cameray() + view_hport[0]);
6
if (!_on_screen)
7
    exit;
8
if (is_vertical)
9
{
10
    if (obj_mainchara.y > (y - 10) && obj_mainchara.y < (y + 50))
11
    {
12
        snd_play_x(snd_camera_flash, 0.1, 1);
13
        image_speed = 0.334;
14
        if (global.flag[8 simplify_vfx] == 1)
15
            image_speed = 0.2;
16
        wobbled = true;
17
    }
18
}
19
else if (obj_mainchara.x > (x - 10) && obj_mainchara.x < (x + 50))
20
{
21
    s = snd_play(snd_wobbler);
22
    snd_pitch(s, 0.8 + random(0.3));
23
    image_speed = 0.2;
24
    wobbled = true;
25
}