Professional Documents
Culture Documents
broadcast I Mon ,..1 and walt stage. Add the script on the right to set the values
set I CarSpeed ... to [!]
of the variables at the start of the game.
set I Countdown ... to
3
Add another variable for all
____-
block to create the road decreases from 360
messagel
,________
messages for your
script.
Message name: [S_etu
_ p sprites called "RoadSpeed"
to store the speed of the
when I realve I C.lculate ,..1 to -360 beforejumping
back to 360 as the road
....,
that tells all the sprites to get ready for the game. lt waits for You'II see how this works <
them to finish, and then the main loop begins. The loop sends out once you've made the
I RoadY,.. 1
B11
messages telling every sprite in the game when to run each part road sprites. change by @
of their code. The loop ends only when the countdown reaches
zero, at which point the "Game Over!" message is sent so all sprites
can perform any final actions and the winner is announced.