I want to make a game where I put a number of light bulbs randomly on a background.
The light bulbs will be turned off (an image) and some of them will automatically turn on (Another image)
The bulbs will turn on for 2 seconds and the user should quickly click on the turned on light to turn it off.
In other words, the user will click on an image and that image will change with the click.
I have two questions regarding that
First, how can I make some lights(image 1) randomly turn off (image 2)?
Second, How can I change the image the turned on light to the turn off light with a click?