Jump to content
  • 0

How to make Timer System in UDMF Format?


Karnasis

Question

I am making an Gauntlet style map, where the main focus is surviving waves of demons until a timer reaches 00:00, which proceeds to open a door to the exit.

Can I do this using scripts in Ultimate Doom Builder, or do I need to mod the files using SLADE?

 

If it is possible either way, how?

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Pretty easy with a script.

Use a While loop and a decreasing int, something like this:

 

int timer = 60;

While (timer > 0) {
        timer—;

        Delay(35);

}
Door_Open(x);

Share this post


Link to post
  • 0
8 minutes ago, Kan3 said:

int timer = 60;

While (timer > 0) {
        timer—;

        Delay(35);

}
Door_Open(x);

Is there a way to make the timer appear on the screen as a HUD message? Or atleast a message appear that tells the player the door is open?

Share this post


Link to post
  • 0
4 hours ago, Karnasis said:

Is there a way to make the timer appear on the screen as a HUD message? Or atleast a message appear that tells the player the door is open? 

 

Take a look here: https://zdoom.org/wiki/HudMessage#Example_scripts

 

Print/HudMessage can print integers you've declared in your script, so this shouldn't be too difficult to accomplish building from what Kan3 shared.

Edited by SMG_Man

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...