Sprite Flashlight

ok so, Ik about the example on the help pages but id like to make one a little more advanced per say, basically is it possible to have a flashlight that stays in front of the sprite and lights up a small area?

3 Likes

Yeah, just make a sprite in the UI that’s completely black except for one area, which should have an alpha of zero, then make it so that it’s in front of the player (use extractors/globals and expressions)

3 Likes

I kind of want to make this with rcreger’s lighting bundle now.

3 Likes

less go another solution :sunglasses:

one last question. what if you have a sidescroller for larger room T-T i’ve tried it before now and it failed.

1 Like

since the sprite can only be as big as the level actually is it doesnt work with the scroller.

1 Like

Step one: Make the game bigger
Step two: make the sprite as big as humanly possible, then fill in the blank spaces with darkness
Step three: Make the game smaller

1 Like

you can do that? epic thanks!

1 Like

This is something that I hope gets simplified in the future when masks are added to Flowlab…

2 Likes