Make tilemaps darker?


(John Andersson) #1

I have several layers in my platformer. I want the background layers to automatically darken so I don’t have to add darker versions to my tile sheets, since that’s a huge waste of resources.

I can only seem to change the alpha, not darkness/brightness of a tilemap? Any ideas?


(Martí Angelats i Ribera) #2

Tilemap extends Canvas.

Canvas have a property called “color” which is a color modifier (0xFFFFFF renders it normally). Just change this value.


(John Andersson) #3

Thanks, and how do I make something brighter than the original?


(Zachary Lewis) #4

You might want to create another layer and blend it.