Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_chasebullet_Draw_0

(view raw script w/o annotations or w/e)
1
if (dont == 0)
2
{
3
    if (active == 0)
4
    {
5
        futuredir = point_direction(x, y, obj_heart.x + 8, obj_heart.y + 8);
6
        draw_sprite_ext(spr_diamondbullet_form, 0, x, y, 3 - (image_alpha * 2), 3 - (image_alpha * 2), futuredir, c_white, 1 - image_alpha);
7
        if (image_alpha < 1)
8
        {
9
            image_alpha += 0.08;
10
        }
11
        else
12
        {
13
            move_towards_point(obj_heart.x + 8, obj_heart.y + 8, 4);
14
            futuredir = direction;
15
            active = 1;
16
            friction = -0.1;
17
        }
18
    }
19
    draw_sprite_ext(sprite_index, 0, x, y, 2 - image_alpha, 2 - image_alpha, futuredir, c_white, image_alpha);
20
    if (x < (__view_get(e__VW.XView, 0) - 40))
21
        instance_destroy();
22
    if (x > (__view_get(e__VW.XView, 0) + 680))
23
        instance_destroy();
24
    if (y < (__view_get(e__VW.YView, 0) - 40))
25
        instance_destroy();
26
    if (y > (__view_get(e__VW.YView, 0) + 520))
27
        instance_destroy();
28
}
29
dont = 0;
30
31
enum e__VW
32
{
33
    XView,
34
    YView,
35
    WView,
36
    HView,
37
    Angle,
38
    HBorder,
39
    VBorder,
40
    HSpeed,
41
    VSpeed,
42
    Object,
43
    Visible,
44
    XPort,
45
    YPort,
46
    WPort,
47
    HPort,
48
    Camera,
49
    SurfaceID
50
}