Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_bq_baseball_Draw_0

related scripts: Alarm_0 • Collision_o_boxingcontroller_fist_hitbox • Collision_obj_bq_baseball • Create_0 • Destroy_0 • Draw_0 • Other_25 • Step_0 • Step_2

(view raw script w/o annotations or w/e)
1
if (hit_timer > 0 && hit_timer < 20)
2
    d3d_set_fog(1, c_white, 0, 0);
3
draw_self();
4
if (hit_timer > 0 && hit_timer < 20)
5
    d3d_set_fog(0, c_white, 0, 0);
6
reticletimer++;
7
draw_sprite_ext(spr_baseball_reticle, 0, x, y, 2, 2, image_angle * -1, c_white, reticletimer / 7);