Discuss Scratch

core_blaster
Scratcher
6 posts

Switches

This is what I really want: switches

The blocks that I would want:
{X On}
{X Off}
=Once X switch activated=
=Once X switch deactivated=

Example:

=Once switch light activated= =Once flag clicked=
^ switch to backdrop 2 ^ /Forever:\
^ broadcast dark ^ /If\ {Light on}
| Show
/Else\
Hide

== = start
^^ = block
{} = the thing that you put the if thing in…
/\ = input, Like if or forever



It would seem less redundant than using a variable… and not taking up as much space in the list to.


/If\ {Idea=true} Costumes:
^broadcast happy^ 1:
^Switch To costume 2^ 2:

Last edited by core_blaster (Aug. 7, 2013 01:59:37)

Wes64
Scratcher
500+ posts

Switches

this can be achieved with variables easily.

forever
if <(switch) = “true”>
do stuff
else
do other stuff
end
end

Using Firefox 46.0.1, Flash plugin version 21.0.0.242, and Windows 7 Professional.
A computer does what you tell it to do, not what you want it to do. - Murphy's Law
jh1234l
Scratcher
100+ posts

Switches

Or:

When GF clicked
forever
if (condition)
set X to 1
else
set X to 0

When GF clicked
Forever
if X=1
Do something
if X=2
Do something else

I do not support because variables can easily be used, and we want kids to learn about variables as it may help with math.

Two Advertising and sharing groups:
Scratch Cat's Hideout: Home Page / Advertise! / Members / Write A Review / Read A Review / FAQs
Scratching fame:

Failord
Scratcher
1000+ posts

Switches

Wes64 wrote:

this can be achieved with variables easily.

forever
if <(switch) = “true”>
do stuff
else
do other stuff
end
end

Exactly. The switches you're suggesting already exist through variables.

Thanks for the ride, Scratch Team and community! Unfortunately, the time has come for me to move on from Scratch, so I'll no longer be using the forums. Thanks again, and farewell!
Invisible text! This will show you if a profile I claim to be mine IS mine. Just remember to visit the profile and see if I confirmed in the comments.
For old time's sake, see the revolutionary Laser Battle 2.0! Also see Unstoppable Game!

And no, the evil kumquats didn't alter my signature…
sonicgames20
Scratcher
44 posts

Switches

Support!

when green flag clicked
if <(sonic) = (awesome)> then
say [Sonic is awesome] for [forever] secs
else
say [Sonic is awesome] for [forever] secs
end
ProdigyZeta7
Scratcher
1000+ posts

Switches

sonicgames20 wrote:

Support!
Did you even notice the other posts?

No support, because the workaround is painfully obvious.



sonicgames20
Scratcher
44 posts

Switches

ProdigyZeta7 wrote:

sonicgames20 wrote:

Support!
Did you even notice the other posts?

No support, because the workaround is painfully obvious.
I know about the workaround. But sometimes I wish there was an easier way. It would make life a little easier and it might stop a little bit of lag.

when green flag clicked
if <(sonic) = (awesome)> then
say [Sonic is awesome] for [forever] secs
else
say [Sonic is awesome] for [forever] secs
end

Powered by DjangoBB