double-jammy-whammy/objects/obj_delayer/Draw_0.gml

10 lines
381 B
Plaintext
Raw Permalink Normal View History

if (countdown > 150) {
draw_sprite( spr_start_timer, 0, 320, 180);
} else if (countdown > 90) {
draw_sprite( spr_start_timer, 1, 320, 180);
} else if (countdown > 30) {
draw_sprite( spr_start_timer, 2, 320, 180);
} else {
draw_sprite( spr_start_timer, 3, 290 + (30 * min(0, countdown - 10)), 180);
draw_sprite( spr_start_timer, 4, 350 + (30 * max(0, -countdown + 10)), 180);
}