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

#1 2011-10-29 01:20:56

jenniferunagi
New Scratcher
Registered: 2011-10-29
Posts: 1

How to make 2 spirits move at once

Hey, I would like to know how do we make 2 sprites move at the same time.

For example:
user click on one sprite and both the top and bottom sprites will move.

Offline

 

#2 2011-10-29 03:04:30

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: How to make 2 spirits move at once

You seem pretty new, so I'll explain all of it! Ok. This will involve something advanced. First of all we will need to use broadcast and recieve blocks. When you broadcast something, it sends a signal to every sprite, but only sprites with the when I recieve block will do something. So, you do:


Sprite 1 Scripts:
When Sprite1 clicked
move 10 steps
broadcast move

Sprite 2 scripts:
When I recieve move
move 10 steps

Hope this helps  smile


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#3 2011-10-29 04:33:44

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: How to make 2 spirits move at once

actually the broadcast should be sent BEFORE the sprite moves also this should b in all about scratch


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4 2011-10-29 08:36:40

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: How to make 2 spirits move at once

joefarebrother wrote:

actually the broadcast should be sent BEFORE the sprite moves also this should b in all about scratch

its IS in all about Scratch  tongue


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#5 2011-10-29 09:15:36

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

Re: How to make 2 spirits move at once

Like this:

Sprite 1:
[blocks]
<when green flag clicked>
<broadcast[ move
<move(?)steps>

Sprite 2:

<when I receive[ move
<move(?)steps>
[/blocks]


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