Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_syncsprite

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

function scr_syncsprite(arg0, arg1, arg2, arg3, arg4, arg5) { var _instance = instance_create_depth(arg1, arg2, arg5, obj_sprite_musicsync); with (_instance) { sprite_index = arg0; bpm = arg3; loopsPerBeat = arg4; } return _instance; }
(arg0, arg1, arg2, arg3, arg4, arg5)
2
{
3
    var _instance = instance_create_depth(arg1, arg2, arg5, obj_sprite_musicsync);
4
    with (_instance)
5
    {
6
        sprite_index = arg0;
7
        bpm = arg3;
8
        loopsPerBeat = arg4;
9
    }
10
    return _instance;
11
}