Can we make a light day/night system like Sea of Stars?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • This is somewhat advanced stuff, if you don't get reply here you migth want to look into discord as well. For shadow there's probably some kind event which handles shadow positions, eg. based on where virtual sun/moon is based on day/night time. And using math to set scale/angle probably....

  • I think that game is done in a 3d engine with real time lightning which makes it easier. but you could get something similar darkness can probably be done with masking as Pixel said, color can be done with a saturation or hue effect.
    Shadow you would have to create a a unique one for each object, have a day timer (probably in an alt value) and then angle it based on that counter. use the same value to set your hue/saturation. You would come a long way if you just get the darkness and color to work without the shadow.

    Please login to see this link.
    Please login to see this link.|Please login to see this link.|Please login to see this link.

  • Based on my experience with Clickteam Fusion I think you could achieve something similar, not at the level of the game you show but good enough...

    Here is a sample of a day/night system that I was working on a while ago with Clickteam Fusion. I did this by using the classic layer method with the "Subtract" effect and modifying the RGB values to make suitable tones based on the time of day.

    Please login to see this media element.

    About shadows, maybe you can use a shadow image for each object and using rotation (to rotate the shadow based on the sun position), scale (to make it stretch or shrink also based on the sun position) and transparency (so that the shadow fades at nightfall) you can achieve something similar to the effect of the video.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

  • That's pretty amazing Sergio, I would be really intersted about how you achieve that!
    Did you use shaders to change the ambiance color?

    Developer of Inexistence available on Steam :
    Please login to see this link.

  • That's pretty amazing Sergio, I would be really intersted about how you achieve that!
    Did you use shaders to change the ambiance color?

    Yes, I use shaders on the layers, I particularly like to use "Tint" since I can set the intensity of the "ambient color".

    I will try to make a simple example so you can see how it's done.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

  • Here is the example, you need to have the Complex-softwares shader package installed to open it (I don't remember if it currently comes with CF)

    Please login to see this attachment.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

  • You're welcome guys! I must say that doing this example has improved certain aspects of the engine I did previously, so it has been useful for me as well.

    I'm improving and adding a few things to the example so I'll share it when it's done.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

  • [mention]Jonathan[/mention] [mention]Zinume[/mention], Sorry guys for the delay, I forgot to upload the new example, here it is:
    Please login to see this attachment.

    *I have fixed some bugs, modified old formulas, added a counter that marks the hours (you can also choose the initial hour) and the indicator now moves smoother and more precisely so you can have better control of the time speed.

    I think now the day and night transitions look better and more realistic.

    Hispanic Community of MMF2 and CF2.5 / Comunidad Hispana de MMF2 y CF2.5: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!