Deltarune (Chapter 4) script viewer

← back to main script listing

gml_GlobalScript_scr_shakeobj_x

(view raw script w/o annotations or w/e)
1
function 
scr_shakeobj_x
scr_shakeobj_x

function
scr_shakeobj_x()
{ shakeobj = instance_create(x, y, obj_shakeobj); shakeobj.target = id; if (argument_count >= 1) shakeobj.shakeamt = argument[0]; if (argument_count >= 2) shakeobj.shakespeed = argument[1]; if (argument_count == 3) shakeobj.shakespeed = argument[2]; with (shakeobj) event_user(0); return shakeobj; }
()
2
{
3
    shakeobj = instance_create(x, y, obj_shakeobj);
4
    shakeobj.target = id;
5
    if (argument_count >= 1)
6
        shakeobj.shakeamt = argument[0];
7
    if (argument_count >= 2)
8
        shakeobj.shakespeed = argument[1];
9
    if (argument_count == 3)
10
        shakeobj.shakespeed = argument[2];
11
    with (shakeobj)
12
        event_user(0);
13
    return shakeobj;
14
}