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 / How to make a screen transition ?

Author
Message
Glog
20
Years of Service
User Offline
Joined: 1st Jun 2004
Location: between compiling and debugging process
Posted: 25th Jun 2004 20:17
in my game , i'd like the screen to be black , then turn slowly to the game display , how to do that ??

and by the way , how to slowly blind a camera view into another , to change of camera ?

A program is sensed to be a conventional mean to give orders to a computer and not being obscure,weird,and full of traps ,that is closer to magic stuff (Dave Small).
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 25th Jun 2004 22:04
Check out this thread.

http://www.thegamecreators.com/?m=forum_view&t=33475&b=1

While it is in the DBP section, the general ideas are still valid.
--
TAZ

History did not begin with PONG. -- Greg Costikyan

Game Beavers
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 26th Jun 2004 12:37 Edited at: 26th Jun 2004 12:37
the fading thing is easy...

set gamma 0,0,0
do
inc R
inc G
inc B
if R>255 then R=255
if G>255 then G=255
if B>255 then B=255
if R<>255 and G<>255 and B<>255 then set gamma R,G,B
sync
loop

This just increments some variables until 255, and if the RGB variables, stating Red, Green and Blue, aren't equal to 255, it will change gamma, so it stops when the screen is at full color.

I'm not sure if it's 255 or 100... don't have DB right now

/edit: forgot the set gamma 0,0,0

Login to post a reply

Server time is: 2025-05-24 19:03:08
Your offset time is: 2025-05-24 19:03:08