Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rhythmgame_performer_Draw_0

(view raw script w/o annotations or w/e)
1
if (silhouette)
2
{
3
}
4
if (loop)
5
    image_index = (((rhythmer.trackpos * animspeed) / rhythmer.notespacing) % 1) * image_number;
6
if (shakeamt > 0)
7
{
8
    draw_self_offset(shakeamt * on, 0);
9
    shakeamt -= shakereduct;
10
    on *= -1;
11
}
12
else if (!silhouette)
13
{
14
    draw_self();
15
}
16
if (silhouette)
17
{
18
    var _xx = 0;
19
    var _yy = 4;
20
    if (name == "susie")
21
        _xx = -2;
22
    if (name == "kris")
23
        _yy = 4;
24
    if (name == "ralsei")
25
        _xx = 2;
26
    draw_set_alpha(1);
27
    scr_draw_set_mask(false, true);
28
    ossafe_fill_rectangle(obj_rhythmgame.x, obj_rhythmgame.y + 396, obj_rhythmgame.x + 640, cameray() + 480, false);
29
    scr_draw_in_mask_begin();
30
    draw_self();
31
    scr_draw_in_mask_end();
32
    scr_draw_self_silhouette_plus_mask_start(_xx, _yy);
33
    draw_set_alpha(0);
34
    ossafe_fill_rectangle(obj_rhythmgame.x, obj_rhythmgame.y + 396, obj_rhythmgame.x + 640, cameray() + 480, false);
35
    scr_draw_self_silhouette_plus_mask_end(_xx, _yy);
36
}