2D Toolkit Forum
2D Toolkit => Support => Topic started by: Henrikc3 on December 04, 2013, 07:12:56 pm
-
Hey guys,
Working on a top down 2.5d game where I use 2dtoolkit. My backgrounds are all made using the tilemap, and I'm using sprites as characters, while the environment is setup with 3d objects.
What I'm wondering is how to make the sprites in the tilemap react to light/darkness. Currently the sprites are showing up perfectly lit, no matter what the rendered light is.
I'd like it to be black if there is no light, so I can put in different lights, and also possibly a flashlight on the main character.
Any suggestions on where to continue my search would be very welcome.
Thanks for reading!
Best regards,
Henrikc3
-
You should probably turn on normals in the sprite collection editor, and then switch the material on the sprite collection to a lit material. It should work fine with lights then.
If you want it to be black without lights, set ambient to black.