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

#1 2012-04-15 07:17:19

mariobro57
Scratcher
Registered: 2011-04-09
Posts: 46

The "When I receive round thing"

When I was making a Scratch project I needed a wait until block. But I needed the sprite to wait until it received something.  mad  So I say in scratch 2.0. the scratch team makes that round thing.


http://i650.photobucket.com/albums/uu227/5ant1ag0/tumblr_m0obmb1lW51rrqkido1_500.gif -mariobro57 http://blocks.scratchr.org/API.php?user=mariobro57&action=onlineStatus http://blocks.scratchr.org/API.php?user=mariobro57&action=onlineStatus&type=text

Offline

 

#2 2012-04-15 11:00:24

FreshStudios
Scratcher
Registered: 2011-04-11
Posts: 500+

Re: The "When I receive round thing"

You could do this... When it broadcasts, switch a variable to 1.

then you could do

wait until variable= 1


http://i43.tinypic.com/24ymnbn.png

Offline

 

#3 2012-04-15 18:54:25

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: The "When I receive round thing"

FreshStudios wrote:

You could do this... When it broadcasts, switch a variable to 1.

then you could do

wait until variable= 1

Here:

when gf clicked
set [state v] to (0)
scripts here
wait until < (state) = (1) >
scripts here

when I receive [broadcast v]
set [state v] to (1)
Though I agree, it would be nice to have that.

Last edited by trinary (2012-04-15 18:54:58)


http://trinary.tk/images/signature_.php

Offline

 

#4 2012-04-15 19:13:10

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: The "When I receive round thing"

I'm making a scratch mod right now. JUST decided to add this. Thanks!

Offline

 

#5 2012-04-18 18:38:55

mariobro57
Scratcher
Registered: 2011-04-09
Posts: 46

Re: The "When I receive round thing"

thanks!



http://i1108.photobucket.com/albums/h413/Vonnehs/Cute-Pixels/pikachu.gif


http://i650.photobucket.com/albums/uu227/5ant1ag0/tumblr_m0obmb1lW51rrqkido1_500.gif -mariobro57 http://blocks.scratchr.org/API.php?user=mariobro57&amp;action=onlineStatus http://blocks.scratchr.org/API.php?user=mariobro57&amp;action=onlineStatus&amp;type=text

Offline

 

Board footer