That depends on how you create your sky.
If you just want a very simple, plain blue sky bgd use cameraclscolor and change it's parameters from 0,0,255 to 0,0,0 over a number of seconds. I would probably also add in an ambientlight 255,255,255 command and decrease it's values too 255,255,255 - 0,0,0 over the same period. Here's a clue:
;outside main loop
r#=255
g#=255
b#=255
cameraclscolor 0,0,b
ambientlight r,g,b
.
.
.
Inside main loop
;to make world generally go darker
r=r-0.1
g=g-0.1
b=b-0.1
THEN use a function where
r=r+0.1
g=g+0.1
b=b+0.1
to make it go light again.
Don't forget to use these values in the main lopp thus:
ambientlight r,g,b
cameraclscolor 0,0,b
Also put in a check to ensure the light does not go into negative numbers (if r<0 then r=0 etc) or of course on the brighten function bigger than 255
IPete2.
If you just want a very simple, plain blue sky bgd use cameraclscolor and change it's parameters from 0,0,255 to 0,0,0 over a number of seconds. I would probably also add in an ambientlight 255,255,255 command and decrease it's values too 255,255,255 - 0,0,0 over the same period. Here's a clue:
;outside main loop
r#=255
g#=255
b#=255
cameraclscolor 0,0,b
ambientlight r,g,b
.
.
.
Inside main loop
;to make world generally go darker
r=r-0.1
g=g-0.1
b=b-0.1
THEN use a function where
r=r+0.1
g=g+0.1
b=b+0.1
to make it go light again.
Don't forget to use these values in the main lopp thus:
ambientlight r,g,b
cameraclscolor 0,0,b
Also put in a check to ensure the light does not go into negative numbers (if r<0 then r=0 etc) or of course on the brighten function bigger than 255
IPete2.