Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bullet_dashbar_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (i_ex(obj_heart))
3
{
4
    x_offset = obj_heart.x_offset;
5
    if (obj_heart.dash_h > 0 && image_blend == c_aqua)
6
        active = false;
7
    else
8
        active = true;
9
    if (obj_heart.dash_stop > 0)
10
    {
11
        x = xx;
12
        hspeed = 0;
13
    }
14
    else
15
    {
16
        hspeed = sp;
17
        xx = x;
18
    }
19
}
20
if ((x + x_offset) < 120)
21
    image_alpha *= 0.8;
22
if (obj_heart.dash_h > 4 && collision_line(x - 10, y, x + 30, y, obj_heart, 0, 0))
23
{
24
    if (image_blend == c_aqua)
25
        event_user(1);
26
    else
27
        event_user(5);
28
}