Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_bq_baseball_final_Draw_0

(view raw script w/o annotations or w/e)
1
if (hit_timer > 0 && hit_timer < 2)
2
    d3d_set_fog(1, c_white, 0, 0);
3
draw_self();
4
if (hit_timer > 0 && hit_timer < 2)
5
    d3d_set_fog(0, c_white, 0, 0);
6
energy_aura_timer++;
7
if (energy_aura_timer == (100 / f))
8
    specialcon = 1;
9
if (specialcon == 1 && hit == 0)
10
{
11
    specialcontimer++;
12
    flameframe = (specialcontimer / 4) % 2;
13
    flamealpha = specialcontimer / 15;
14
    if (flamealpha >= 0.5)
15
        flamealpha = 0.5;
16
    if (specialcontimer >= 15)
17
        flamealpha = 1 - (specialcontimer / 30);
18
    if (specialcontimer >= 22)
19
    {
20
        specialcontimer = 12;
21
        image_index = 0;
22
    }
23
    draw_sprite_ext(spr_bhero, 10 + flameframe, x + 22, y + 100, -4, 4.8 + abs(sin(specialcontimer / 4) / 2), 0, c_red, flamealpha);
24
    draw_sprite_ext(spr_bhero, 11 - flameframe, x + 22, y + 100, -4, 4.8, 0, c_orange, flamealpha / 2);
25
}
26
reticletimer++;
27
draw_sprite_ext(spr_baseball_reticle, 0, x, y, 8, 8, image_angle * -1, c_white, (reticletimer - 100) / 7);