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

#1 2012-03-31 15:11:30

FunDude
Scratcher
Registered: 2010-06-29
Posts: 500+

wait until i receive block

this is a bit of a necropost but we need this block


LOL signature fail

Offline

 

#2 2012-03-31 15:55:11

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: wait until i receive block

This is possible and has been suggested so many times.You do this:

When I receive [broadcast v]
Set [variable v] to (1)
Then do this:
When gf clicked
Repeat until <(variable) = [1]>
Action goes here
End
More action // this is after its broadcasted

Last edited by turkey3 (2012-03-31 15:58:22)

Offline

 

#3 2012-03-31 16:04:19

FunDude
Scratcher
Registered: 2010-06-29
Posts: 500+

Re: wait until i receive block

turkey3 wrote:

This is possible and has been suggested so many times.You do this:

When I receive [broadcast v]
Set [variable v] to (1)
Then do this:
When gf clicked
Repeat until <(variable) = [1]>
Action goes here
End
More action // this is after its broadcasted

I know, but this would be shorter.


LOL signature fail

Offline

 

#4 2012-03-31 16:07:12

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: wait until i receive block

How can the opening post be a necropost?

Not gonna happen. What's wrong with

when I receive [KITTEHS v]
?

(Yay for randomness)


Why

Offline

 

#5 2012-03-31 16:17:09

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: wait until i receive block

RedRocker227 wrote:

How can the opening post be a necropost?

Not gonna happen. What's wrong with

when I receive [KITTEHS v]
?

(Yay for randomness)

The wait until I receive can be in the middle of a script,

Offline

 

#6 2012-03-31 16:30:20

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: wait until i receive block

ImagineIt wrote:

RedRocker227 wrote:

How can the opening post be a necropost?

Not gonna happen. What's wrong with

when I receive [KITTEHS v]
?

(Yay for randomness)

The wait until I receive can be in the middle of a script,

But what advantages would there be?


Why

Offline

 

#7 2012-03-31 16:31:50

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: wait until i receive block

RedRocker227 wrote:

ImagineIt wrote:

RedRocker227 wrote:

How can the opening post be a necropost?

Not gonna happen. What's wrong with

when I receive [KITTEHS v]
?

(Yay for randomness)

The wait until I receive can be in the middle of a script,

But what advantages would there be?

You can have something do something, stop and then wait until something is broadcasted.

Offline

 

#8 2012-03-31 16:33:06

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: wait until i receive block

ImagineIt wrote:

RedRocker227 wrote:

ImagineIt wrote:

The wait until I receive can be in the middle of a script,

But what advantages would there be?

You can have something do something, stop and then wait until something is broadcasted.

I guess, but it's not really essential. You could easily do that with variables.

EDIT: My 8,000th post  yikes   yikes   yikes

Last edited by RedRocker227 (2012-03-31 16:33:38)


Why

Offline

 

#9 2012-03-31 16:38:34

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: wait until i receive block

RedRocker227 wrote:

ImagineIt wrote:

RedRocker227 wrote:


But what advantages would there be?

You can have something do something, stop and then wait until something is broadcasted.

I guess, but it's not really essential. You could easily do that with variables.

EDIT: My 8,000th post  yikes   yikes   yikes

Yeah, but many new scratchers would find it easier.

Offline

 

#10 2012-03-31 16:46:21

Haiming
Scratcher
Registered: 2011-08-20
Posts: 1000+

Re: wait until i receive block

I guess I'll support!  tongue

Offline

 

#11 2012-03-31 20:32:49

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: wait until i receive block

 
wait until <(adf;lkg;alkjf)=(whatever)> 


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#12 2012-05-02 21:19:23

FunDude
Scratcher
Registered: 2010-06-29
Posts: 500+

Re: wait until i receive block

necrobump


LOL signature fail

Offline

 

#13 2012-05-03 16:05:39

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

Re: wait until i receive block

ImagineIt wrote:

RedRocker227 wrote:

ImagineIt wrote:


You can have something do something, stop and then wait until something is broadcasted.

I guess, but it's not really essential. You could easily do that with variables.

EDIT: My 8,000th post  yikes   yikes   yikes

Yeah, but many new scratchers would find it easier.

There is no equivalent of it in other programming languages. Broadcasts are events, and events trigger things not control code structure.


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

 

#14 2012-05-03 16:52:35

Sunshine_Muffin
New Scratcher
Registered: 2012-05-02
Posts: 6

Re: wait until i receive block

I'm just going to say that I agree with ya`ll here. For experienced scratchers, it would be not necessary, but for some younger scratchers they would find it easier and simpler. I like to say that the simpler something is, the more enjoyable.

~Sun

Offline

 

#15 2012-05-06 12:20:51

Unknown164
Scratcher
Registered: 2012-04-08
Posts: 7

Re: wait until i receive block

I agree. It is possible, but a newer version of Scratch should have a

[scratchblocks]
<I receive [broadcast v]>
[\scratchblocks]

block so that you can put it in to "wait until" blocks.

I have done the thing that is in the first post, but it can get very tedious.

Offline

 

Board footer