Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
2DTK and night/day on tilemap scenes
« previous
next »
Print
Pages: [
1
]
Author
Topic: 2DTK and night/day on tilemap scenes (Read 2634 times)
DJVDJV
2D Toolkit
Newbie
Posts: 30
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))
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
2DTK and night/day on tilemap scenes