Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_wave_fx_raining_Step_0

(view raw script w/o annotations or w/e)
1
if (!init)
2
{
3
    depth = obj_wave_fx.depth - 50;
4
    init = true;
5
}
6
timer--;
7
if (timer < 0)
8
{
9
    timer = 2;
10
    var _drop = instance_create(x + random(174) + 10, y + random(220) + 10, obj_animation);
11
    _drop.sprite_index = spr_rain_splash;
12
    _drop.depth = depth + 20;
13
    _drop.image_speed = 0.5;
14
}