Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_noelle_scared_Draw_0

(view raw script w/o annotations or w/e)
1
if (shadow == 0)
2
{
3
    shadow = instance_create(x, y, obj_marker);
4
    shadow.image_alpha = 0;
5
    shadow.sprite_index = spr_noelleShadow;
6
    if (room == room_dw_city_mice2 || room == room_dw_city_mice)
7
        shadow.depth = 800000;
8
}
9
if (i_ex(shadow))
10
{
11
    shadow.image_alpha = 0;
12
    shadow.x = bbox_left + 3;
13
    shadow.y = bbox_bottom + 2;
14
}
15
if (jumping == 1)
16
{
17
    if (room == room_dw_city_mice2 || room == room_dw_city_mice)
18
    {
19
        shadow.image_alpha = (-jumpy / 50) + 0.5;
20
    }
21
    else
22
    {
23
        draw_set_alpha((-jumpy / 50) + 0.5);
24
        draw_set_color(c_black);
25
        draw_ellipse(bbox_left, bbox_top, bbox_right, bbox_bottom, false);
26
        draw_set_alpha(1);
27
    }
28
}
29
draw_sprite_ext(sprite_index, image_index, x, y + jumpy, image_xscale, image_yscale, image_angle, image_blend, image_alpha);