Deltarune script viewer

← back to main script listing

gml_Object_obj_visualEffect_pacify_Step_0

(view raw script w/o annotations or w/e)
1
timer--;
2
if (timer <= 0)
3
{
4
    var zobj = instance_create(x, y, obj_afterimage_grow);
5
    zobj.sprite_index = spr_spare_z;
6
    zobj.speed = 12;
7
    zobj.direction = zcounter * 40;
8
    zobj.friction = 1;
9
    timer = 2;
10
    zcounter++;
11
}
12
if (zcounter >= 9)
13
    instance_destroy();