day and night

How do I make the sky change from light blue to dark blue using the horizon color tool? Is there a python script?

For a simple day and night, I’d use a sphere with inverted normals and a gradient texture that has light blue on one side and dark blue on the other side. Then, animate the sphere to rotate (or use motion actuator) to change the sky…

I am going to use that idea for another project but my map is way to big for that to work. Thanks for responding though :slight_smile:

Hello;

I create a script to get this task works (No luck with the logic Bricks).
You can download an example from here: https://dl.dropboxusercontent.com/u/28832113/Blender%20Share/Day%20%26%20Night%202.6.blend

Hope this help you, let me know any question.

zADAN LAVEY

An option is to setup a sun lamp and animate it to rotate around your scene, creating a lighted and unlighted time during your scene. You could always use a world texture, But I’m not sure if that works in BGE.

thanks! :slight_smile:

If you use a simple sphere with gradient, you can put that as a background scene, so the map/level doesn’t matter.
Then just build lightning on the main scene and keep those two elements synced.