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

#1 2011-09-07 00:01:15

supermokey6
New Scratcher
Registered: 2011-08-21
Posts: 4

broadcast variable

there should be a sensing block that detects if the sprite receives a broadcast, similar to the '<touching[egg ' block
example:
<if><when I receive[
<move(  )steps>
but the receive block should be a sensing block

Offline

 

#2 2011-09-07 00:05:55

supermokey6
New Scratcher
Registered: 2011-08-21
Posts: 4

Re: broadcast variable

there should be a sensing block that detects if the sprite receives a broadcast, similar to the '<touching[ ' block
example:
<if><when I receive[
<move(  )steps>
<end>
but the receive block should be a sensing block

Offline

 

#3 2011-09-07 00:12:24

nuparu
New Scratcher
Registered: 2010-06-22
Posts: 8

Re: broadcast variable

Double post.  tongue

And for now, try this:
[....other code]
[set [xbroadcasted?] to true]
[broadcast [x]]

[when green flag pressed]
[forever]
[if <xbroadcasted? = true>]
[...code]
[endif]
[endforever]


...well this sucks.
I got banned and am awaiting appeal. For now, I'm just gonna stick to Advanced Topics.... 'cause Ghost is still messed up...

Offline

 

Board footer