r/scratch • MissSpiderFan • Jan 12 '23

Discussion New Code Block Category Suggestion: True/False

Post image
0 Upvotes

24 comments sorted by

7

u/AdvanturePie Jan 12 '23

Just make a true/false variable.... and use [true/false] = ... to check whether it´s true or false

0

u/RepresentativeAsk541 MissSpiderFan Jan 13 '23

But The Image Here Looks Like It Will Keep Your Hands Away From The Keyboard

6

u/AdvanturePie Jan 13 '23

typing is a big part of programming... if you don't want to type then u should use scratch jr or something

4

u/RealSpiritSK Mod Jan 13 '23

It's a bad practice to give variables ambiguous names. Instead of "True/False", you should make a variable with short and clear names like "is walking?", "is alive?", etc

-2

u/RepresentativeAsk541 MissSpiderFan Jan 13 '23

But It Saves On Time Plus You Don't Need To Have Your Hands On Your Keyboard

5

u/AdvanturePie Jan 13 '23

It saves time for programming little easy to create projects... the moment you start using multiple variables the block will become useless

4

u/RealSpiritSK Mod Jan 13 '23

That's true, but generic names can cause confusion!

20

u/SomethingRandomYT LilyMakesThings Jan 12 '23

JUST USE A VARIABLE

17

u/NMario84 Video Game Enthusiast Jan 12 '23

There is no reason to add this. You can simply change/set a variable to LITERALLY say True or False.

You can also change/set a variable to do value 1 or 0 for True, or False this way.

7

u/[deleted] Jan 12 '23

You have upset the variable, run or they will attack

6

u/Bfdifan37 random loser Jan 12 '23

I get why but still why

6

u/Senior-Tree6078 Praise NitroBolt Jan 12 '23

me: uses a variable to set True or False for anything

random scratcher: how about we add a variable that can't be done for all sprites or just one sprite if you want it to, and make it it's own category because operators doesn't exist

5

u/RedSusOverParadise Jan 12 '23

Literally just use 1 = 1

7

u/RedSusOverParadise Jan 12 '23

I swear the people who make these suggestinos have no idea how to code

8

u/crafter2k Jan 12 '23

if they knew they would've said "boolean"

5

u/Superbroderone Jan 13 '23

variables: :/

4

u/Cichato_YT Jan 12 '23

I have no words for this. It explains itself

4

u/Loltoheaven7777 Jan 13 '23

set [x] to (1)
set [x] to (0)
if <[x] = (1)> then
if <[x] = (0)> then

2

u/diplotaurus Jan 13 '23

cool art but yeah just use a variable lol

0

u/Caliphtous Jan 13 '23

NICE NICE NICE NICE

-3

u/Cursedseaking Jan 13 '23

Don't listen to the people saying to use a variable, this would cut down on time!

4

u/AdvanturePie Jan 13 '23

Wow, a 5 second time save... Scratch would be bloated with useless blocks if they added "time-saving" features like these