Discuss Scratch

cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Ok I pull up

King!

Last edited by cookieclickerer33 (Dec. 8, 2022 19:21:52)

cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Boop
cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

(please tell me if I am doing this wrong) bump

Last edited by cookieclickerer33 (Dec. 14, 2022 18:27:35)

An0therRand0mC0der
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Hosted image:
[img]https://assets.scratch.mit.edu/get_image/.%2E/90a6e13454a270cdfa5ced201f88bfac.png[/img]

cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

An0therRand0mC0der wrote:

Hosted image:
[img]https://assets.scratch.mit.edu/get_image/.%2E/90a6e13454a270cdfa5ced201f88bfac.png[/img]

Thank you so much!
cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

B U M P
medians
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Maximouse
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

This looks very similar to Boolean variables.
cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Maximouse wrote:

This looks very similar to Boolean variables.
Already discussed. This is not a dupe it’s even in the post, it is somewhat similar but it is different as this suggests many many more blocks

Flags/switches are an entirely different system independent from variables

Last edited by cookieclickerer33 (Dec. 22, 2022 19:47:05)

cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

medians wrote:

http://scratchblocks.github.io/#?style=scratch3&script=when%20switch%20(my%20switch%20v)%20is%20%5Bon%20v%5D%20%3A%3A%20events%20hat%20%2F%2Fthis%20would%20activate%20when%20the%20switch%20turns%20true%0A%2F%2Fit%20would%20not%20activate%20again%20until%20the%20switch%20changes%20values%20and%20changes%20back%0A%0Aturn%20switch%20(my%20switch%20v)%20to%20%5Bon%20v%5D%20%3A%3A%20%230cc99a%20%0A%0Aflip%20switch%20(my%20switch%20v)%20%3A%3A%230cc99a%20%2F%2Fif%20the%20switch%20is%20on%20this%20will%20make%20it%20off%0A%0A(value%20of%20switch%20(my%20switch%20v)%3A%3A%20%230cc99a%20)%20%2F%2Fthis%20would%20report%201%20or%200%20instead%20of%20true%20or%20false%0A%0A%3Cswitch%20(my%20switch%20v)%20value%20%20%3A%3A%20%230cc99a%20%3E%20%2F%2F%20this%20would%20report%20true%20or%20false%0A%0A%3Cswitch%20(my%20switch%20v)%20is%20(on%20v)%3F%3A%3A%20%230cc99a%20%3E%20%2F%2Fthis%20would%20also%20report%20true%20or%20false%2C%20but%20if%20a%20boolean%20is%0A%2F%2Fplaced%20in%20the%20second%20slot%2C%20it%20reports%20based%20on%20the%20value%20of%20that%20so%20for%20example%0A%0A%3Cswitch%20(my%20switch%20v)%20is%20((1)%20%2B%20(0))%3F%20%3A%3A%20%230cc99a%3E%20%2F%2F%20if%20my%20switch%20was%20true%20this%20would%20report%20true%0A%0A%3Cswitch%20(my%20switch%20v)%20is%20%3C(0)%20%3D%20(1)%3E%3F%20%3A%3A%20%230cc99a%3E%20%20%2F%2Fif%20my%20switch%20is%20true%20this%20would%20report%20false%0A
Pretty good!
The switch on block would have a toggle function built in so there’s no reason for it to be there
Maximouse
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

cookieclickerer33 wrote:

Maximouse wrote:

This looks very similar to Boolean variables.
Already discussed. This is not a dupe it’s even in the post

Flags are an entirely different system independent from variables
The Boolean variables suggestion doesn't say that those variables would be in the same category as normal variables and have the same set of blocks to modify them. It's only a concept, which makes sense, because the exact UX will be designed by the Scratch Team once the suggestion is implemented.
PkmnQ
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

cookieclickerer33 wrote:

Maximouse wrote:

This looks very similar to Boolean variables.
Already discussed. This is not a dupe it’s even in the post, it is somewhat similar but it is different as this suggests many many more blocks

Flags/switches are an entirely different system independent from variables
This is a very good workaround for boolean variables, and boolean variables are a very good workaround for this. Either could be implemented, wouldn't make a difference.
cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

PkmnQ wrote:

cookieclickerer33 wrote:

Maximouse wrote:

This looks very similar to Boolean variables.
Already discussed. This is not a dupe it’s even in the post, it is somewhat similar but it is different as this suggests many many more blocks

Flags/switches are an entirely different system independent from variables
This is a very good workaround for boolean variables, and boolean variables are a very good workaround for this. Either could be implemented, wouldn't make a difference.
I prefer this because of the fact they would not interfere with variables. So you wouldn't be making new variables . Kinda like broadcasts
Maximouse
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

cookieclickerer33 wrote:

I prefer this because of the fact they would not interfere with variables. So you wouldn't be making new variables . Kinda like broadcasts
Boolean variables could also be separate from normal variables, just like lists are.

Last edited by Maximouse (Dec. 23, 2022 18:44:53)

cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Bump

Also yay I’m back from break
cookieclickerer33
Scratcher
1000+ posts

Switch blocks (updated!) (formerly flag blocks)

Bump

I swear I’m doing something wrong but I’m not sure what

Powered by DjangoBB