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

#1 2009-06-26 05:04:18

Binkatong
Scratcher
Registered: 2009-06-25
Posts: 8

Just a stupid little question...

Hey, I'm just a newb here, and I was wondering what's a good way to make sprites do two things at the same time and finish at the same time? Is there a special script to do that, or do I just need to time it right? Or, if anyone wants to give me an example of a game where the sprites animate while moving, that would be great. Thankies!  big_smile

Offline

 

#2 2009-06-26 05:38:27

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Just a stupid little question...

I've never done this, but you could try doing it this way:
[blocks]
<when green flag clicked>
<set{ done }to( 0)
<repeat( certain number of times)
<think[ put in whatever blocks you want in here]
<end>
<set{ done }to( 1)
[/blocks]
that would be in one sprite
the other would have this:
[blocks]
<when green flag clicked>
<repeat until> <( <{ done }> <=> 1 )>
<think[ put whatever blocks here]
<end>
[/blocks]


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#3 2009-06-26 05:55:03

solstice
Scratcher
Registered: 2008-09-04
Posts: 55

Re: Just a stupid little question...

<when I receive[ what you could do is

<when green flag clicked>
<broadcast[ start]
(blocks go here that you want to do the same)
<end>

that is for the first one

<when I receive[ start]
blocks go here
<end>

or you could use variables ( this is only if they are doing the same thing if not plz say)

Offline

 

#4 2009-07-13 22:12:54

iab97
Scratcher
Registered: 2009-04-04
Posts: 100+

Re: Just a stupid little question...

Or you could just have them have the same Wait/Second Count.  smile


-iab97 One of my favorite quotes: "You can't direct the wind, but can adjust your sails." -Unknown

Offline

 

Board footer