Hello,
I have painted two ducks. I would like first duck to move 10 steps and then second duck to move 10 steps. Where should I write the script...on the stage or individual sprites. How can I make the second duck move only after first ducks completes 10 steps.
thanks.
Offline
You should put the scripts in the individual sprites; a script can only affect a sprite if it is in the sprite itself.
You can put in the first duck:
And put in the second duck:
Offline
scratchlearner wrote:
Hello,
I have painted two ducks. I would like first duck to move 10 steps and then second duck to move 10 steps. Where should I write the script...on the stage or individual sprites. How can I make the second duck move only after first ducks completes 10 steps.
thanks.
[blocks]Write the script in the individual sprites. Here's an example.
Sprite 1:
<when green flag clicked>
<move( 10 )steps>
<broadcast[ next duck
Sprite 2:
<when I receive[ next duck
<move( 10 )steps>
You can also add wait blocks to wait a second before moving or broadcasting "next duck".
Hope this helps!
Offline