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.

Dark GDK / 3D with 2D HUD.

Author
Message
RoseOwnage
12
Years of Service
User Offline
Joined: 6th Dec 2011
Location:
Posted: 6th Dec 2011 17:28
Hi, im new at this forum and i just saw that there are many questions that give good help but i just dont find how to make a HUD for ingame. like an 2D sprite of a heart, and that you can see it like text but how do you do that is my question!

Hi
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Dec 2011 16:02
You answered your own question. Use sprites. Look in the help file and it will show you how. One word of advice, hide your original sprites and use "dbPasteSprite" to place them on the screen.

The fastest code is the code never written.
RoseOwnage
12
Years of Service
User Offline
Joined: 6th Dec 2011
Location:
Posted: 12th Dec 2011 17:07
thanks

-Solved-

-RoseOwnage

Hi
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 14th Dec 2011 21:09
wait HawkBlood you can use the 3D Commands and there when you want just use dbLoadImage() and dbSprite()?

C++ Medium 3.5/5
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 17th Dec 2011 16:39
Using sprites is sometimes tricky. If you are going to put text over a sprite (which is usual whith a HUD), you want to paste them instead of using the other sprite commands such as dbSetSpritePriority(..). When you paste sprites, you control which ones are on top by pasting them last, and text will be on top if you paste the sprite and then dbText(..) after.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-11-19 05:33:00
Your offset time is: 2024-11-19 05:33:00