Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_pushableblock_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if (active)
2
{
3
    onscreen = true;
4
    if (!init)
5
    {
6
        var _block = instance_create(x, y, obj_pushableblock_board);
7
        _block.daddy = id;
8
        _block.extflag = extflag;
9
        init = true;
10
    }
11
}
12
else
13
{
14
    if (onscreen == true)
15
    {
16
        if (!(x >= 128 && x <= 512 && y >= 64 && y <= 320))
17
            onscreen = false;
18
    }
19
    if (onscreen == false)
20
        init = false;
21
}