This simulates a traffic light sequence. When you click the green flag the red light shows, and then after a delay the light cycles to green and then back again. The main loop script is on the Stage. This sends messages to the individual light sprites, telling them to either show or hide.
Designed for Yr6 Computing. See how the sequence of lights works. Add a Pedestrian Crossing if you can!