arkerone Posted March 7, 2015 Share Posted March 7, 2015 Hello everyone, I have a sky and I would like to display a day & night cycle. How a can do that? I try with gradient bitmap but the result isn't good :/ Thanks! Link to comment Share on other sites More sharing options...
Alexalten Posted March 9, 2015 Share Posted March 9, 2015 Hi.I've used a little trick: I've placed, at the highest Z level of the canvas, an image that cover all the game area (is a blue semi-transparent png).The default alpha value of this image is zero.Using a timer, the alpha value increase. So I simulate the incoming night (it's like the blue filter used at cinema). The day arrive when the alpha value decrease to zero.I hope my trick could be useful for you.Bye, Alex InsOp, Kitanga Nday (NDAY Games) and ZeroGravity 3 Link to comment Share on other sites More sharing options...
Recommended Posts