There’s one final feature we really wanted to include in this game, and that’s to add lighting effects to 2D sprites.
The problem is that lighting in Unity (which is 3D) doesn’t ordinarily work that well with flat two dimensional objects. A flat surface is either lit or unlit – it’s difficult to create a sense of texture.
Of course there are tools that will do this for you. One we were keen to try out was Sprite Dlite.
I had a minor problem after download thanks (again) to Apple’s permissions, the Sprite DLight guy (Dennis) told us how to fix it.
So basically all we did was grab one of the old PNGs from one of the old walk cycles and dropped it in there, from there you can easily adjust the settings. We’ll have to spend a bit of time figuring out what combination of settings give the best results, but it shouldn’t be too hard.
From there, this video shows how to plug it in to Unity, it’s preeettty basic.
One of the main problems so far is that the shadows aren’t all that realistic in some places, but maybe there are ways to fix that.