In scratch 2.0, I would appreciate it if there were an "I receive" block in "sensing." I would like this because I need some of the scripts in my project to only happen until something is broadcasted. Thanks for your concideration
Offline
This has definitely been suggested before. A lot. http://suggest.scratch.mit.edu/forums/6 … ?ref=title
It's a nice idea, but there are some kinks to work out. The biggest concern is that a broadcast is an event, not a boolean. In other words, a broadcast is broadcast and then disappears in an instant for hat blocks to receive, whereas booleans (the blocks with pointed ends) check for more "persistent" values. Some proposed solutions have been for the block to check for the last broadcast that was sent, or to check if the given broadcast had been sent within a given amount of time.
Offline
Harakou wrote:
This has definitely been suggested before. A lot. :P http://suggest.scratch.mit.edu/forums/6 … ?ref=title
It's a nice idea, but there are some kinks to work out. The biggest concern is that a broadcast is an event, not a boolean. In other words, a broadcast is broadcast and then disappears in an instant for hat blocks to receive, whereas booleans (the blocks with pointed ends) check for more "persistent" values. Some proposed solutions have been for the block to check for the last broadcast that was sent, or to check if the given broadcast had been sent within a given amount of time.
Never thought about that before, but I think that this would best be made by:
When [>broadcast] recieved
[set [>variable] to (1)]
and
When green flag clicked
[if <(variable)=(1)>
{script here}
]
Last edited by Rexpup (2011-06-06 12:50:32)
Offline
Rexpup wrote:
Harakou wrote:
This has definitely been suggested before. A lot.
http://suggest.scratch.mit.edu/forums/6 … ?ref=title
It's a nice idea, but there are some kinks to work out. The biggest concern is that a broadcast is an event, not a boolean. In other words, a broadcast is broadcast and then disappears in an instant for hat blocks to receive, whereas booleans (the blocks with pointed ends) check for more "persistent" values. Some proposed solutions have been for the block to check for the last broadcast that was sent, or to check if the given broadcast had been sent within a given amount of time.Never thought about that before, but I think that this would best be made by:
When [>broadcast] recieved
[set [>variable] to (1)]
and
When green flag clicked
[if <(variable)1)>
{script here}
]
Haha, I thought of that like 5 seconds after I posted this, no joke.
Offline