Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_enemy_flower_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
    depth = 999990;
3
if (con == 1)
4
{
5
    if (i_ex(obj_mainchara_board))
6
        depth = obj_mainchara_board.depth - 80;
7
    timer = 0;
8
    con = 2;
9
}
10
if (con == 2)
11
{
12
    timer++;
13
    if (timer == shottarget)
14
    {
15
        instance_create(x + 16, y + 14, obj_board_enemy_flower_bullet);
16
        timer = -shottarget / 2;
17
    }
18
}
19
if (con == 3)
20
{
21
    timer = 0;
22
    con = 0;
23
}