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

#1 2012-09-23 08:14:10

SimpleScratch
Scratcher
Registered: 2007-05-25
Posts: 100+

Variable value broadcast at Green Flag press

At the moment, Scratch remembers the value of variables and only broadcasts them using Remote Sensor Connections/Mesh method if any changes that occur.

This means that when you press the Green Flag, even if the code resets any variables to initial starting values, Scratch will not broadcast these values if they are not different from the last time if broadcast them.

This behaviour can cause problems if you have connected hardware that is out of sync with Scratch and needs resetting to an initial state as Scratch won't broadcast the intital state settings  sad

Could it be modified to broadcast all broadcast able values on Green Flag press please?

regards

Simon

Offline

 

#2 2012-09-23 13:31:43

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

Re: Variable value broadcast at Green Flag press

Scratch broadcasts scratch-startclicked when you press the green flag.


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

 

#3 2012-09-23 15:20:41

SimpleScratch
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Variable value broadcast at Green Flag press

Scratch broadcasts scratch-startclicked when you press the green flag.

That's true but unfortunately not much help if a relay state is dependant on a variable value (I start off a Traffic Light controller my switching the red and amber off and the green light on) if Scratch doesn't issue all broadcast variable values at the beginning of a script  sad

Simon

Offline

 

Board footer