Forum: Topic

Day and Night Cycle Shader can get really impressive effect on the atmosphere of the game.

It can be used without application surface or any other surfaces. It can give really significant performance boost on mobile devices. But you always can use it on surface too.

Like in famous YoYo Games video it uses color remapping for working and doesn't change the alpha channel, so it can be used even without surfaces with special system. You should specify from what depth to start to use shader and on what to finish - on the GUI layer for example, or use shader only on sky, or draw rays of light over the shader layer for cool effect.

All graphics are from packs

Demo: Download

With this shader you can:

  • Create alternation of day and night in your game.
  • Change the speed of cycle or attach its position in time to the variable.
  • Change colour propertices of each period of time.
  • Apply effect on fulscreen without surfaces.
  • Apply effect on any sprite, background or surface.
  • Do all of it fast and beautiful.
  • Get perfect work on all platforms - Windows, Mac, Linux, Android, iOS, HTML5 and other.
  • Get technical support if purchase.

You need intermediate knowledge of GML to use.

Please write a review if you like the asset and tell me your suggestions for improvement. If you found an error in my code or my English, please contact me ;)

My other assets! Fixture editor, LUT, physics rope, liquid simulation, textured terrain, custom savegame, shaders and more.

End User Licence Agreement (EULA).

Version 1.0.0. Published September 27, 2015

Created with GameMaker: Studio v1.4.1657

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Christopher R 23 April 2017

KeeVee Games (Publisher)

i have a big problem with this.. You know how the sun and moon follows the view and the player. how do you make the stars follow the player and view too. when i move my player the stars stay in one spot and i can walk away from the stars eventually not seeing stars at all how do i make the stars stay with the sun and moon and the view?!


Anonymous 02 March 2017


Viriya T 28 September 2016

Excellent Work.

It's amazingly cheap for something so useful.


KeeVee Games (Publisher) 30 September 2016

Tnank you!


Scott G 05 January 2016

Great Asset

Works incredibly easily and nearly seamlessly integrated with my game. I cannot recommend it highly enough. Saved me from a day of coding my own day/night cycle. Well worth $0.99.


KeeVee Games (Publisher) 06 January 2016

Thank you! ;)


Michael S 18 December 2015

Good asset, great customer service

This is a good day & night cycle, that nicely fades between the different RGB values of your choice.
It's also easy to change the passage of time by using the mode_color variable, maybe a unlogical name to indicate the passage of time, But it shouldn't be too difficult to figure out, Thanks to the commented code.

The comments don't explain too much, but most of them indicate what a section of code does.
Personally I would like to see more comments or a help document that explains the code more, but I think experienced Game Maker users shouldn't have to much of a problem understanding how it works.

And if you are having problems understanding something Keevee Games is willing to help from my experience. I have contacted KeeVee Games multiple times and they responded with helpfull answers. And I didn't have to wait too long for their responses.

The only thing I'm missing in this example is changing how long each part of the day lasts and
maybe an in-game time.


KeeVee Games (Publisher) 27 December 2015

Thank you very much for your review!

We will try to do our best to make asset more usable.


ERIC F 07 January 2016

Great !

Oh man, it's very impressive and so simple to use!
It works great!

I have a question though: I want to slow down the cycle (I find the time between the sunrise and sunrise too fast...) but I don't know which value I have to decrease...
A little help would be great !


KeeVee Games (Publisher) 08 October 2015

It is line "mode_color += 0.001" in Step event of o_shader_start object.


Andrew F 30 September 2016


That idea of using depths instead of surfaces are very interesting. And shader looks pretty nice!


KeeVee Games (Publisher) 27 September 2015

Thank you.
Well, it's not my idea, I find it on YoYo Tech Blog here and just proceed for my personal use :)

What is the issue?

Back to Top