How to make a night effect

0 favourites
  • 7 posts
From the Asset Store
Setup and ready for your art, animations and story. Viral Storybook App Template.
  • Hello everybody,

    I looked for solutions to make a night mode for my game. I found several which only provide part of the solutions.

    First of all, I try to use the "ReplaceColor" function because I have a color palette and replacing the color would allow me to have complete control of my rendering.

    1) make an effect mask on the layout. Unfortunately the UI is also caught in it.

    2) make an effect mask layer just before the UI. The problem is that the ReplaceColor does not work with this method (therefore impossible to have an accurate rendering).

    So I am stuck today. The only solution I see for the moment is to duplicate the sprites to have a night sprite and a day sprite (or use the animation function with a night animation and a day animation).

    Anyone have any idea how to avoid the above solution?

    Below are some examples to illustrate my point

    Thx in advance.

    Day

    Night

    Tagged:

  • If you want it to look good, you're probably going to have to put the effort in to color night time separately.

    Proper night time visuals generally are not just daytime visuals with a filter on top.

    Edit:

    If you're using an effect mask and isolating it, try turning on the "Force own texture" property on the layer you are applying the mask to.

  • Getting a day night cycle that looks impressive can take a ton of work. However, to get one that is passable and doesn't take too much effort in Construct, you can use the built in sprite color property. Take a look at this example I built for you. It just uses the day image you posted.

    drive.google.com/file/d/1p129DlOodbgRlcilLy9AfO0drwv8fRMu/view

  • Replacing color for every object in the game will be difficult and probably bad for performance. It's much easier to do with an overlay layer, just need to find a nice combination of the base color+effect. Here is my attempt, based on InDWrekt's demo:

    dropbox.com/scl/fi/5xzzwk5m07jhmxiwev9nx/DayNightCycle.c3p

  • Whaow ! Thx you very much !

    It can end up looking good for little effort.

    I will do some tests tonight after my day of work with your two solutions!

    Thanks again dop2000 and InDWrekt !

  • Why not throw in some fireflies too for good measure :)

    onedrive.live.com/redir

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yes !

    I have already prepared the fireflies: p

    https://ibb.co/vjv3XN0

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)