Yep.
I'm not sure if this has been suggested before, but I personally think it would be really useful.
Basically it's a kind of variable, which can "switch" on and off.
Example:
<when__clicked>
<turn__ON>
<whenIrecieve___>
<turn__OFF>
<If__=ON>
<broadcast__>
I'm not exactly sure where this would lead but I'm hoping people could take it further.
Offline
I've been thinking about this too
I think that it would be good if you could choose to make a variable which only can store 1 bits of data.
Then use the switch function to toggle the value...
This function exists in many other programming languages and it would be very useful in Scratch!
Offline
I found out that vars can store true/false by putting a Boolean block inside.
Offline
So you basically want a boolean block. Yeah that would be really nice. That way it only serves the true/false purpose you want, and takes up less memory.
Offline
You can do this really easily with setting the variable (or using a special variable for the on and off stuff). So no... and it's not neccessary.
Offline
Jonathanpb wrote:
You can do this really easily with setting the variable (or using a special variable for the on and off stuff). So no... and it's not neccessary.
Yeah u can just make a variable called on/off or something else if u like.
1=on
0=off
or vice versa
That's why on power buttons there are two symbols that look like a 1 and a 0. They represent on/off.
Offline