What is the best way to simulate a flashlight effect?
Currently, in the example, I am using a large sprite with a transparent image with a hole in it. This sprite follows the mouse. For it to work correctly, the sprite needs to be much larger than the image behind it.
Should I create a small sprite/image, and change the size after dropping it on the layer (or runtime).
Is there a way different way I can do this?
FYI: The example above was the very early beginning of a POC for a game we were working on.