Cyberdemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Hud Messages
 
Author
All times are GMT. The time now is 11:19. Post New Thread    Post A Reply
cyber-menace
Forum Regular


Posts: 922
Registered: 03-03


How do I make a HUD Message and how do I put it in the upper right hand corner of the screen?

Old Post 08-18-03 23:42 #
cyber-menace is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
cyber-menace
Forum Regular


Posts: 922
Registered: 03-03


I need to turn print(d:countd, s:" Seconds Until Explosion"); into a HUD Message that is either in the top centre part of the screen or the upper right part of the screen. I just want basic font, but red in colour. How would I do this?

Old Post 08-19-03 00:30 #
cyber-menace is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Epyo
Dude


Posts: 2921
Registered: 06-02


code:
hudmessage (d:countd, s:" Seconds Until Explosion", HUDMSG_FADEOUT , 0, CR_RED, 1.0, 0.0, 1.0);

Try that. Just for your information btw...
code:
hudmessage (s:"put text here", HUDMSG_SOMETHING , ID, CR_COLOR, x-axis, y-axis, time);


HUDMSG_SOMETHING can be either HUDMSG_TYPEON or HUDMSG_FADEOUT, or something else I forget.

The ID is the id number of the hud message. If you have multiple hudmessages at once, this comes in handy.

CR_COLOR is the color.

x-axis is where it appears on the screen (left or right) 0.0 is left side, 1.0 is right side.

y-axis is where it appears on the screen (top or bottom) 0.0 is top side, 1.0 is bottom side.

Time is how long the message should stay in SECONDS! Like 1.0 is one second. 0.0 is infinity. If you want to get rid of an infinite message, you have to make another hudmessage with the same id, but make it say " ".

Somebody else is probably gonna come and correct me on everything I just said soon, so you might wanna wait for them :)

EDIT: DOH I DOUBLE POSTED. Just forget that last post thanks.

__________________
Pacman Doom 2 Play with latest version of ZDoom!

Old Post 08-19-03 01:50 #
Epyo is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3743
Registered: 05-00


cyber-menace, please use the search a bit! Clicky.

__________________
this sig is in my pants | WIP - WADs In Progress: post your WADs!

Old Post 08-19-03 05:31 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
cyber-menace
Forum Regular


Posts: 922
Registered: 03-03


Hey, thanks Epyo! Your idea worked perfectly. Although is there any way to just make a HUDMESSAGE dissappear after it's done instead of fading out or typing in the next one?

Old Post 08-19-03 11:20 #
cyber-menace is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00


There's an example WAD about 4 from the bottom of this page:

http://members.lycos.co.uk/Enjay001/

that may help you.

Quite frankly, I can't even remember what's in it, but I think it covers a few different hud message effects.


Edit: Ahhhh Fek. There's something screwy going on with that site. Everytime I try and DL one of the files, I get redirected to a site that says:


You are trying to download this file from a member page hosted on Lycos Tripod UK for free:

To access this file, you need to visit the member page first:
http://members.lycos.co.uk/enjay001
(you will be redirected in 5 seconds)


And that's when I do visit the correct site. So I just go round and round in a cyclic orgy of links, never getting to the file I want. Bah, it used to work. If it works for you, good luck. Sounds like a Lycos problem to me. Let's hope they sort it out.

__________________
Meek

Last edited by Enjay on 08-19-03 at 17:59

Old Post 08-19-03 17:40 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Torn
google is your master


Posts: 2739
Registered: 07-02


Isn't it in the zdoom editing FAQ?.

__________________
Download Flashback Demo here
"an sig that sayin u the champ."

Last edited by Torn on 08-19-03 at 18:37

Old Post 08-19-03 18:16 #
Torn is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Epyo
Dude


Posts: 2921
Registered: 06-02


Instead of HUDMSG_FADEOUT, there's HUDMSG_NORMAL, and another one I can't remember that's a combo of fade out and typeon.

__________________
Pacman Doom 2 Play with latest version of ZDoom!

Old Post 08-19-03 23:45 #
Epyo is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Nanami
not a woman


Posts: 2655
Registered: 07-02


I think typeon automatically does fadeout.

__________________
ZooM, the ZDoom Racing Mod

Old Post 08-20-03 00:46 #
Nanami is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 11:19. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Hud Messages

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory