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.

Newcomers DBPro Corner / Fade and 2d stuff you can see trew???? (db pro)

Author
Message
Mr X
18
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 27th Mar 2006 17:06 Edited at: 27th Mar 2006 17:08
Hi all.

Ive got three questions that I need (accually more that I want) to get answered.

How do you make so images fade out? And how do you make them fade back again?

And how do you create 2d boxes (for exapmple) that you can see threw? Like in for example Half Life Deathmatch, the bar where you see all the scores. You can see threw it, how do you do that in DarkBASIC Pro?

EDIT:

Lol, me and my bad spelling. Its "threw", not "trew" (look at the topic name).
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 27th Mar 2006 17:18
Quote: "Lol, me and my bad spelling. Its "threw", not "trew" (look at the topic name). "


Or possibly through?

For sprites look at SET SPRITE ALPHA
For objects look at SET ALPHA MAPPING ON

To make images like gui's etc with sexy semi-transparent areas then make in your art program and export as PNG.


The word "Gullible" cannot be found in any English Dictionary.
Mr X
18
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 27th Mar 2006 19:45
Ok, Ive tried that sprite thing, but Im not that good at them (te be honest, never used them), and it complains that the sprite does not exist! Ive looked trough the command help, but I didnt find anything. Please tell me whats wrong.



Quote: "Or possibly through?"


Well, I guess my spelling is worse then i thought.
Mr X
18
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 27th Mar 2006 19:46 Edited at: 27th Mar 2006 19:46
Quote: "To make images like gui's etc with sexy semi-transparent areas then make in your art program and export as PNG."


Ok, now I feel stupid, but I dont understand what you are talking about. Sorry, can someone explain this?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 27th Mar 2006 19:51
you have tried to set the sprites alpha before telling DBP that the sprite exists.
Try swapping these two lines:



Mr X
18
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 28th Mar 2006 10:38 Edited at: 31st Mar 2006 16:43
Ok, thanks . Ill try that when I get the time (and that will be tomorrow).

EDIT:

Got it to work. Thanks .

Login to post a reply

Server time is: 2024-09-24 19:24:34
Your offset time is: 2024-09-24 19:24:34