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

#1 2012-08-23 05:31:33

blue80070
New Scratcher
Registered: 2012-08-22
Posts: 5

when I recieve... as a boolean block

There is only a when I recieve hat block, which means scripts like this are impossible:

when gf clicked
repeat until <I recieve [end v]>
move (10) steps
end

Offline

 

#2 2012-08-23 05:34:17

taddl
Scratcher
Registered: 2009-03-08
Posts: 100+

Re: when I recieve... as a boolean block

it's not impossible, but the workaround is annoying...
Support


http://blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=image&amp;user=taddl
http://blocks.scratchr.org/API.php?user=taddl&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1

Offline

 

#3 2012-08-23 05:59:09

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: when I recieve... as a boolean block

Sorry, the workaround is just too easy.

when gf clicked
set [move v] to [10]
forever
 move (move) steps
end

when i receive [end v]
set [move v] to [0]


http://i50.tinypic.com/312u714.jpg

Offline

 

#4 2012-08-23 06:05:43

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: when I recieve... as a boolean block

BirdByte wrote:

Sorry, the workaround is just too easy.

when gf clicked
set [move v] to [10]
forever
 move (move) steps
end

when i receive [end v]
set [move v] to [0]

+1.

I don't support.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#5 2012-08-23 06:15:27

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: when I recieve... as a boolean block

I support. This would honestly make things so much easier. Yes, the workaround is pretty easy, but if you're constantly having to do it you would prefer this.


http://i48.tinypic.com/5a25g5.png

Offline

 

#6 2012-08-23 07:21:20

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: when I recieve... as a boolean block

jontmy00 wrote:

BirdByte wrote:

Sorry, the workaround is just too easy.

when gf clicked
set [move v] to [10]
forever
 move (move) steps
end

when i receive [end v]
set [move v] to [0]

+1.

I don't support.

Here's a better workaround, that can work for all scripts:

when gf clicked
set [recieved? v] to [0]
repeat until <(recieved?) = [1]
 move (10) steps
end

when i receive [end v]
set [recieved? v] to [1]


http://i50.tinypic.com/312u714.jpg

Offline

 

#7 2012-08-23 07:22:57

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: when I recieve... as a boolean block

BirdByte wrote:

jontmy00 wrote:

BirdByte wrote:

Sorry, the workaround is just too easy.

when gf clicked
set [move v] to [10]
forever
 move (move) steps
end

when i receive [end v]
set [move v] to [0]

+1.

I don't support.

Here's a better workaround, that can work for all scripts:

when gf clicked
set [recieved? v] to [0]
repeat until <(recieved?) = [1]>
 move (10) steps
end

when i receive [end v]
set [recieved? v] to [1]

Fixed your repeat.  wink


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer