Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rouxls_helicopter_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = direction + 180;
2
if (i_ex(obj_heart))
3
    depth = obj_heart.depth - 1;
4
timer--;
5
if (timer == 0 && ammo > 0)
6
{
7
    bomb = instance_create(x, y, obj_rouxls_helicopter_bomb);
8
    bomb.damage = damage;
9
    bomb.target = target;
10
    ammo--;
11
    timer = 6 + irandom(16);
12
}
13
if (global.turntimer < 1)
14
    instance_destroy();
15
if (x < (obj_growtangle.x - 80))
16
    fade = 1;
17
if (fade == 1)
18
{
19
    image_alpha -= 0.1;
20
    if (image_alpha < 0)
21
        instance_destroy();
22
}