Deltarune 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(argument0, argument1, argument2) //gml_Script_scr_slidebeatbullet { var _lane = argument0 var _frames = argument1 var _targetBeat = argument2 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 } }
(argument0, argument1, argument2) //gml_Script_scr_slidebeatbullet
2
{
3
    var _lane = argument0
4
    var _frames = argument1
5
    var _targetBeat = argument2
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
}