Jump to content

Night & day cycle


arkerone
 Share

Recommended Posts

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

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...