Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Macro11_1

Help with showing a Timer in ACS

Recommended Posts

Yeah, This thing compliles and everything... But It dosent show up in zDooM. I dont know why...

Id be much obliged to have some help on ACS :), Im making a map SORT of like Tormentor667 Stronghold. (yeah I cant get my own ideas, but hey, if you wana be nitpicky then id guess that ut03 was the first game with this style of gameplay.)

Oh well, If no one wants to help ill understand.

// This is my Script for Pirate.wad

#include "zcommon.acs"

int x;

Script 1 OPEN
{
int time;
time = x;
time = (1*10)-1200;
	While (x <= 1200)
	delay(350);
	HudMessage (s:"there is: ", d: "time", s:"left"; HUDMSG_PLAIN, 0, 0, 0.5, 0.0, 1);
	x++;
}
Good day!

Share this post


Link to post

Oh thanks for the quick reply but that didn't seem to help.

Im not shure on how to use the x,y cordinates for the HUDmessage()

do you or anyone else think that could have anything to do with it?

Thanks again for any help received.

Share this post


Link to post

okay, then try SetHudSize


before you enter the loop try
SetHudSize(640, 480, 1);

Also with that being set, you can now expand your coord values.

Experiment with 64.0 for the x, and 128.0 for the y values.

Share this post


Link to post

Ok that sorta helped, but

Interesting note, I tryed moving the HUDMessage() before the delay so it looked like this:

while( x <= some number)
HUDMessage();
delay();
x++;
Then the timer appeard on screen, but the script was terminated at the start as a runaway script, but the spooky thing was that my CPU then clocked in at 100% useage.

hmmm, I think im getting closer to an answer :P.

Thanks Kaiser for the help so far :)
[Edit1]
Actually, sorry for wasting time and thread space, ill post back later once Ive got more of a grasp on this stuff :|
[Edit2]
Arg, lol I fuigured it out. sorry for the massive waste of time you guys, but here is what i came up with.
// This is my Script for Pirate.wad

#include "zcommon.acs"

int x;

Script 1 OPEN
{
setHudSize(640, 480, 1);
int time;
	while (x <= 1200) {
	time = x;
	time = (time-1200)*-1;
	delay(35);
	HudMessage (s:"there is: T-", d: time, s:" left"; HUDMSG_PLAIN, 0, 0, 64.0, 128.0, 1.0);
	x++;
	}
}

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×