V
Victor Wolf
Guest
So I'm working on a game where the player is navigating a maze. The maze is lit when you hold spacebar and unlit when not. The enemies are drawn to you when the light is on.
I'm trying to do this with image alphas for now (trying to avoid lighting while I'm still a beginner).
It's working fine but I'd like to make it take a second to go all the way dark, so it will be more visually pleasing. Right now I'm just drawing a black rectangle over the tile layers when spacebar is not held. Is there a way to actually change the alpha of the tiles themselves? And if so, can I do it gradually?
If not, is there a way I can make the rectangle's alpha decrease before it disappears completely?
Thanks
I'm trying to do this with image alphas for now (trying to avoid lighting while I'm still a beginner).
It's working fine but I'd like to make it take a second to go all the way dark, so it will be more visually pleasing. Right now I'm just drawing a black rectangle over the tile layers when spacebar is not held. Is there a way to actually change the alpha of the tiles themselves? And if so, can I do it gradually?
If not, is there a way I can make the rectangle's alpha decrease before it disappears completely?
Thanks