j0lt Posted July 30, 2021 Is there any way to display a countdown timer in a map? I was thinking of having a self-destruct countdown with a timer and if the player doesn't get to the level exit in time they "die". Is this possible? 0 Share this post Link to post
1 boris Posted August 1, 2021 34 minutes ago, j0lt said: Good point! I use GZDoom! Then you can use ACS, like a simple script like this: #include "zcommon.acs" script "death_timer" ENTER { int seconds_till_death = 70; while(seconds_till_death > 0) { int minutes = seconds_till_death / 60; int seconds = seconds_till_death % 60; int leading_zero = seconds < 10 ? "0" : ""; print(i:minutes, s:":", s:leading_zero, i:seconds, s:" until destruction!"); seconds_till_death--; delay(35); } print(s:"DESTRUCTION!"); Thing_Damage(0, 0xff, MOD_UNKNOWN); } 1 Share this post Link to post
1 NiGHTMARE Posted August 1, 2021 It would help to know what source port you're developing for, as the answer will be completely different depending on whether it's vanilla/Chocolate Doom, Boom, GZDoom, etc :) 1 Share this post Link to post
0 j0lt Posted July 31, 2021 15 hours ago, Redoom said: This might help Well that definitely solves half of it! Now to figure out if I can get a visible timer put on screen... Then all I have to do is figure out a way to trigger a crusher over the "voodoo doll" once it reaches 0. 0 Share this post Link to post
0 j0lt Posted August 1, 2021 1 hour ago, NiGHTMARE said: It would help to know what source port you're developing for, as the answer will be completely different depending on whether it's vanilla/Chocolate Doom, Boom, GZDoom, etc :) Good point! I use GZDoom! 0 Share this post Link to post
Is there any way to display a countdown timer in a map?
I was thinking of having a self-destruct countdown with a timer and if the player doesn't get to the level exit in time they "die". Is this possible?
Share this post
Link to post