Hello Guest

Author Topic: Lighting, tilemaps and sprites  (Read 3375 times)

Henrikc3

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Lighting, tilemaps and sprites
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Lighting, tilemaps and sprites
« Reply #1 on: December 04, 2013, 10:46:12 pm »
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.