Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_slidebeatbullet

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

function
scr_slidebeatbullet(arg0, arg1, arg2)
{ var _lane = arg0; var _frames = arg1; var _targetBeat = arg2; var _positionX = lanesX + (_lane * lanesWidth) + (lanesWidth * 0.5); with (instance_create_depth(_positionX, -30, 0, obj_slidebullet)) { framesAway = 999; frames = _frames; targetBeat = _targetBeat; image_alpha = 0; } }
(arg0, arg1, arg2)
2
{
3
    var _lane = arg0;
4
    var _frames = arg1;
5
    var _targetBeat = arg2;
6
    var _positionX = lanesX + (_lane * lanesWidth) + (lanesWidth * 0.5);
7
    with (instance_create_depth(_positionX, -30, 0, obj_slidebullet))
8
    {
9
        framesAway = 999;
10
        frames = _frames;
11
        targetBeat = _targetBeat;
12
        image_alpha = 0;
13
    }
14
}