Excellent! This is so much better than my version, because it just needs one single flashlight sprite and progresses much more smoothely from one state to the other. Also, it takes fewer scripts and less random stuff. Great project, I love it!
This flashlight project was inspired by Jens's.
It uses a single sprite with a white-to-black gradient behind a transparent image with black writing.
Where the white sprite is behind the writing, the writing can be read. Hiding the white sprite makes the writing disappear against the black background.
Click and hold to turn on the flashlight.
Use the mouse to wave the flashlight around.
Comments
You need to be logged in to post comments
Add a Comment
I think you'll like New Flashlight2 even better.
Compact and clever.
Compare the code for this implementation with the code in (link to project)">(link to project) which uses no variables or broadcast messages.
Excellent! This is so much better than my version, because it just needs one single flashlight sprite and progresses much more smoothely from one state to the other. Also, it takes fewer scripts and less random stuff. Great project, I love it!