This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-06-12 11:27:55

scratchlearner
New Scratcher
Registered: 2011-06-12
Posts: 1

First Scratch project

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

 

#2 2011-06-12 11:49:33

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: First Scratch project

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:
http://i56.tinypic.com/2vtcgfs.gif

And put in the second duck:
http://i55.tinypic.com/xmpjfd.gif


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-06-12 11:54:52

undefeatedgames
Scratcher
Registered: 2011-05-22
Posts: 1000+

Re: First Scratch project

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!


Please call me udg or bearsfan, not undefeated.
Scratch and Misc.! Click here for Misc.'s Successorhttps://lh3.googleusercontent.com/-jkhes3yzmQk/T7G_BnxT9xI/AAAAAAAABYI/xhoN1Jk2M08/s513/sigp1.gif

Offline

 

Board footer