Hello Guest

Author Topic: 2DTK and night/day on tilemap scenes  (Read 3364 times)

DJVDJV

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
2DTK and night/day on tilemap scenes
« on: September 05, 2014, 09:25:48 am »
Hello,

I would like to get night/day cycle to work.

What is best way to do  shoothly changing  night/day cycle to tilemap scene? (I would like to use one map not 2 different (Dark for night and light for day))


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2DTK and night/day on tilemap scenes
« Reply #1 on: September 05, 2014, 10:04:23 am »
Use (create?) a shader that has a color parameter, and then change this parameter globally (Shader.SetGlobalColor). If all the rest of your sprites use the same parameter, you'll have everything fitting in quite nicely.