Create a countdown timer on the Stage with the help of a new variable called time
. The timer should begin at 30 seconds and count down to 0 seconds.
Create a broadcast
that sends the message ‘end’. A
is like an announcement over a loudspeaker: it can be heard by all of your sprites. Add the broadcast
block to the end of the timer code so that the code will send an ‘end’ message when the broadcast
has counted down to time
0
.
Select your character sprite and add some code so that the sprite stops the other scripts
when it receives the end
message.
Test your game again. It should continue to ask questions until the timer has counted down to 0.