Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
MasterInsan0
23
Years of Service
User Offline
Joined: 14th May 2003
Location: United States
Posted: 8th Jun 2003 06:50
I'm having trouble getting any sort of HUD to work in my FPS. I tried using bitmaps, but they made my level unable to load for some reason, and I would be stuck at the loading screen. I tried sprites, but they didn't show up and just the commands slowed my FPS down to 4 or 5. I tried loading it as an image, but even that failed.

Does anyone have any good ideas on why the sprites slow the game down so badly or how to implement a hud? I've taken the experimental HUD displays out of the program.

By the way, yes the program is very messy and badly coded, but it's my first real program. I'm personally impressed with myself because of it.

If anyone wants the level I'm using, post your e-mail (or a yahoo address or something) and I'll send it to you. It uses Half-Life textures, so use half-life.wad for it if you have Half-Life.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 8th Jun 2003 07:06
A fixed Z-depth object should do it, but most likely the 2D is failing because it is drawing to the background as it 'should' work.

Try putting the line 'draw to front' during your initialisation sequence.

Pneumatic Dryll
MasterInsan0
23
Years of Service
User Offline
Joined: 14th May 2003
Location: United States
Posted: 8th Jun 2003 07:32
Alright! The draw to front works. Thank you.

Login to post a reply

Server time is: 2026-07-11 11:42:46
Your offset time is: 2026-07-11 11:42:46