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 / fade in... fade out

Author
Message
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 10th Feb 2008 19:47
I'm working on an intro and i'd like to use fade-in and fade-out effects, sometimes to be applied to single sprites or images (transparent PNGs). Any idea how to accomplish that?
MultiyPlayer game
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Watching you!
Posted: 10th Feb 2008 20:45
here is a command you might want to look at
dbFadeBitmap
This command will fade the contents of a specified Bitmap. You must specify a fade value that sets the level of fading from zero which fades the bitmap completely to black, up to 100 which does not fade the bitmap at all. Fade operations are slow and the completion time depends on the size of the bitmap.

Syntax
void dbFadeBitmap ( int iBitmap, int iFade )
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 10th Feb 2008 21:03
i'm not sure how to use bitmaps, when i did the following:


the screen just turned black...
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 10th Feb 2008 21:07
unsure if related but the line dbSetDisplayMode (1280,1024,0);
shouldnt the color depth be at least 32?

[href]mod2software[/href]
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 10th Feb 2008 21:29
you are probably right, but for some reason i never noticed the difference when in windoow mode...
Daggeth
17
Years of Service
User Offline
Joined: 3rd May 2007
Location:
Posted: 10th Feb 2008 21:50
Color depth is over ridden in window mode, I believe.

Thats why you sometimes get those angry messages from applications demanding you lower color depth to 16 bit.. atleast, you used to.
i cant believe its not fabio
18
Years of Service
User Offline
Joined: 10th Feb 2006
Location:
Posted: 10th Feb 2008 23:11
so... any idea about my fade-in/fade-out problem?

Login to post a reply

Server time is: 2024-10-08 11:33:33
Your offset time is: 2024-10-08 11:33:33