Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rouxls_cards_Draw_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    timer++;
4
    if (timer == 1)
5
        snd_play_pitch(snd_spellcast, 1.4);
6
    y = lerp(y, ystart - 45, 0.16);
7
    if (timer > 14)
8
        circlealpha -= 0.2;
9
    if (timer == 20)
10
    {
11
        timer = 0;
12
        con = 1;
13
        snd_play(snd_stardrop);
14
    }
15
}
16
if (con == 1)
17
{
18
    timer++;
19
    angle += 10;
20
    if (timer >= 8)
21
    {
22
        timer = 0;
23
        con = 2;
24
    }
25
}
26
if (con == 2)
27
{
28
    image_alpha -= 0.1;
29
    if (image_alpha < 0)
30
        instance_destroy();
31
}
32
siner += 4;
33
var scale = 0.7 + (sin(siner / 6) * 0.1);
34
draw_sprite_ext(spr_sneo_bigcircle, image_index, x, y - 36, scale, scale, image_angle, image_blend, circlealpha);
35
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle - angle, image_blend, image_alpha);
36
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle + angle, image_blend, image_alpha);
37
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle - (angle / 2), image_blend, image_alpha);
38
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle + (angle / 2), image_blend, image_alpha);
39
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);