Hi everybody.
I got a videogamedesign class in my classical graphic design studies and I’m totaly new to unity. So please consider this in any explenation: )
I’m trying to make a atmospheric 8bit platformer using 2D dynamic lightning with a normal map on the material (as described in this tut:
).
Atm I’m trying to figure out how to flip around the walk animation, but I already run into a problem when I just turn around the player with flip in the sprite renderer. The normal map/material doesn’t seem to flip as well, so the sprite isn’t affect by the light anymore and disapears. Any solutions to this? (Btw, it works if I just put a standart material on the sprite, but then I loose the dynamic light effect)
As I have literally NO experience with coding I’m always looking for easy solutions. For example is ist possible to just assign another animation for walking into the other direction? Or do I just have to add the flipped around walk animation to my normalmap sprite atlas?
Also, there will be many more questions to come in the process of making this game happen, so I will probably keep using this thread instead of spaming the forum with new ones.
Best regards and thanks alot in advance,
Darius
EDIT: I was able to flip the walking animation, by copying some script from a tutorial. So if I have a standard material on my sprites I see the player walk in both directions. But when I put the material with the normal map on it, the player still disappears when I walk left: (
Edit 2: I was able to make it work, by setting the shader from standard to Sprites/diffuse, but now i get a very smooth lighting, instead of the pixel by pixel difference i had before. Any ideas how to solve? The game I want to make is based around lighting “riddles”, so i really want to get this going before I start designing any mechanics.


