Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_object_falls2_Step_0

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.con >= 2)
2
    instance_destroy();
3
if ((y + speed) >= (ystart + 20) && con == 0)
4
{
5
    vspeed = 0;
6
    gravity = 0;
7
    snd_play(snd_screenshake);
8
    
scr_shakescreen
scr_shakescreen

function
scr_shakescreen()
{ instance_create(x, y, obj_shake); }
();
9
    con = 1;
10
}
11
if (con == 1)
12
{
13
    timer++;
14
    if (timer == 16)
15
        instance_destroy();
16
    if (image_alpha == 0)
17
        image_alpha = 1;
18
    else
19
        image_alpha = 0;
20
}