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 screen?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 4th Sep 2006 03:38
how do u fade the screen away??

like a transition to a different cutscene??
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 4th Sep 2006 03:47
Thats a little vague. Do you mean like fading into white, then fading back ?


David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 4th Sep 2006 15:44
i mean where the screen keeps getting darker & darker until its completely black,then i could fade in the next scene.
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 5th Sep 2006 00:36
If the scene is a movie file then you can use windows movie maker to add a fade to black and fade from black effect.


Terrorist Zero
18
Years of Service
User Offline
Joined: 29th Aug 2006
Location: Teh YouKai
Posted: 5th Sep 2006 01:14
You could always take a temp. snapshot of the current frame, set a completely black/white image over the top, put the temp. image on top of that, and then increase the transparancy of the temp image gradually?

I'm sort of new to programming, so that's the best I could come up with on the spot.

www.tornupgaming.com
The home of free games and game projects.
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 5th Sep 2006 10:33 Edited at: 5th Sep 2006 10:36
As TZ said but without the first part. There is no need to take a snapshot of your screen first, you could still have your game playing while it is fading to black.

If there are no sprites on screen then use a plain make it black, completely transparent, have it fill the screen, disable its zdepth and lock it to the screen. Now bring it's opacity up to max at whatever speed you like.

If there are sprites on screen then you will need to use a sprite instead because the plain won't cover them.

Here is a quick test:
Press SpaceBar to fade to black
Press ReturnKey to fade from black





David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 5th Sep 2006 17:52
thanks! i think ill use scraggles method for this,ill just hide any sprites while fading & use alpha on a plain in front of the camera.

Login to post a reply

Server time is: 2024-11-26 11:58:16
Your offset time is: 2024-11-26 11:58:16