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.

DarkBASIC Discussion / text and image fading

Author
Message
Silent Knight
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 18th Nov 2005 02:30
can you make text and images fade in and out of the screen?

Only when the last tree is cut, the last river is dammed, and the last spot of ground is paved will we realize we can't eat money
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 18th Nov 2005 03:21
you can use the fade bitmap command:



Cheers,
Capt. America
Silent Knight
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 18th Nov 2005 22:52
how about text?

Only when the last tree is cut, the last river is dammed, and the last spot of ground is paved will we realize we can't eat money
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 19th Nov 2005 02:20
As far as i know you cannot fade text, but you could create an image that contained the text needed and fade that image.
thats what i do if i need to.


Cheers,
Capt. America
x1b
20
Years of Service
User Offline
Joined: 19th Sep 2004
Location:
Posted: 19th Nov 2005 02:33
You can use time() and have text pop in and out. search the forum, you should find a thread with lit and I discussing this

- Do it, Do it Right, Do it right now..
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Nov 2005 22:19 Edited at: 19th Nov 2005 22:20
Quote: "how about text?"


You can fade text by just changing the color content. I used to do this all the time in Quickbasic (well it's easier in Quickbasic because you can change the color palette). I threw this together so it's a bit primitive. When it fades in it fades as different colors till it gets to the maxes... you might not like that effect... but it points you in the right direction (I think).

Works in both Classic and Pro:
Silent Knight
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 20th Nov 2005 04:08
are there text effects like on microsoft power point where the word zooms from the corner or each letter files into shape? If not is there at least some form of text scrolling?

Only when the last tree is cut, the last river is dammed, and the last spot of ground is paved will we realize we can't eat money
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Nov 2005 05:42
Quote: "are there text effects like on microsoft power point where the word zooms from the corner or each letter files into shape? If not is there at least some form of text scrolling?"


You have to make your own effects. Simply increasing the x coordinate within the do/loop will cause it change locations and appear to be scrolling.



Doing each letter will involve more code but chances are if you've seen it done in another program... you can do it in Darkbasic. You just have to experiment.
ThinkDigital
19
Years of Service
User Offline
Joined: 18th Aug 2005
Location: A galaxy far, far away...
Posted: 20th Nov 2005 18:44
I used to use a technique where I changed the gamma level of the screen to fade it all out and back in.

AdamGameSource.com
3d Model Competition
Silent Knight
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: In Your Mind
Posted: 23rd Nov 2005 04:01
thanks everyone for your help so far. ill try out some of these tips.

Only when the last tree is cut, the last river is dammed, and the last spot of ground is paved will we realize we can't eat money

Login to post a reply

Server time is: 2025-05-22 19:53:15
Your offset time is: 2025-05-22 19:53:15