Pages: 1
Topic closed
Hey guys, I'm doing the classic dog chases cat game and I'm having trouble displaying Game Over. In the Game Over script I have
<hide><when green flag clicked>
<when I receive[STOP><stop all><show>
Can somebody help me please?
Offline
Tried that, and when I first put game over in it was over top the two scripts.
Offline
When you want the game to be over, broadcast (ex.) "Game Over"
Then, have the Game Over sprite appear when it receives the broadcast.
http://scratch.mit.edu/forums/viewtopic.php?id=50597#req_message
http://scratch.mit.edu/forums/viewtopic.php?id=50597#req_messagehttp://scratch.mit.edu/forums/viewtopic.php?id=50597#req_message
Offline
Put this in the dog sprite:
[blocks]
<when green flag clicked>
<forever>
<if> <touching[ cat
<broadcast[ game over
<hide>
<end>
<end>
[/blocks]
And this in the cat sprite:
[blocks]
<when I receive[ game over
<say[ Game over ]for( 2 )secs>
<hide>
[/blocks]
Hope this helps!
Offline
Topic closed
Pages: 1