Deltarune (Chapter 5) script viewer

← back to main script listing

gml_GlobalScript_scr_vfx_stardeath

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

function
scr_vfx_stardeath(arg0, arg1, arg2)
{ _angle = irandom(90); var i = 0; repeat (arg2) { vfx = instance_create_depth(arg0, arg1, depth + 1, obj_plat_vfx_star); vfx.speed = 20; vfx.direction = ((i / arg2) * 360) - _angle; vfx.alarm[0] = 5; vfx.alarm[1] = 7; i++; } }
(arg0, arg1, arg2)
2
{
3
    _angle = irandom(90);
4
    var i = 0;
5
    repeat (arg2)
6
    {
7
        vfx = instance_create_depth(arg0, arg1, depth + 1, obj_plat_vfx_star);
8
        vfx.speed = 20;
9
        vfx.direction = ((i / arg2) * 360) - _angle;
10
        vfx.alarm[0] = 5;
11
        vfx.alarm[1] = 7;
12
        i++;
13
    }
14
}