Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullet_healing_Step_0

(view raw script w/o annotations or w/e)
1
if (wall_destroy == 1)
2
{
3
    if (x < (camerax() - 80) || x > (camerax() + 640 + 80) || y < (cameray() - 80) || y > (cameray() + 480 + 80))
4
        instance_destroy();
5
}
6
if (updateimageangle == 1)
7
    image_angle = direction;
8
if (spin == 1)
9
    image_angle += spinspeed;
10
if (bottomfade != 0)
11
{
12
    if (y > (cameray() + bottomfade))
13
        image_alpha *= 0.8;
14
}
15
lifetime++;
16
if (lifetime >= maxlifetime || !i_ex(obj_heart))
17
    instance_destroy();
18
if (place_meeting(x, y, obj_heart))
19
{
20
    snd_play(snd_power);
21
    instance_destroy();
22
}