Discuss Scratch

AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

define true
if <[thing] = (true)> then
activate true::sensing
broadcast [true v]
end

(true)
when I receive [true v]
say [Correct!] for (2) secs
change [points v] by (1)

define false
if <[thing] = (false)> then
activate false::sensing
broadcast [false v]
end

(false)
when I receive [false v]
say [Incorrect...] for (2) secs
change [points v] by (-1)
How will you use them?

Last edited by AllenderaGames (Nov. 10, 2023 00:00:46)

medians
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
Eason_9
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

Why do we need it anyway? We could just do:

if <thing> then
...
end
cookieclickerer33
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

is this like report or something??
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

medians wrote:

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
you don't understand these blocks are for more like quizzes like when a answer is correct or false
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

Eason_9 wrote:

Why do we need it anyway? We could just do:

if <thing> then
...
end
as I told the true and false blocks are for more like quizzes or also they can be used for sensing like:
when green flag clicked
if <<touching color [#FF0000] ?> and <true>> then
restart::control
end
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

Hey y'all! Can you or someone can make an workaround of this blocks?
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

Hey y'all! Can you or someone can make an workaround of this blocks?
forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found:
In variables:
set [variable v] to [true]

set [variable v] to [false]
In operators:
<not <>>//returns true
<<> and <>>//returns false
but I still want a workaround that can be made with sensing blocks ( only voluntary)
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing

Last edited by AllenderaGames (Oct. 20, 2023 15:29:56)

gdfsgdfsgdfg
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

<not <>> // reports true
<not <not <>>> // reports false
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

gdfsgdfsgdfg wrote:

<not <>> // reports true
<not <not <>>> // reports false
well that also can be an workaround, but the wiki replaces:
<not <not <>>>
by
<<> and <>>
so it's a bit confusing….

Last edited by AllenderaGames (Oct. 20, 2023 15:30:16)

AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

medians wrote:

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
you don't understand these blocks are for more like quizzes like when a answer is correct or false
and plus in this discussion I interpret that these blocks are reporters (sorry if I sounded rude)

Last edited by AllenderaGames (Oct. 20, 2023 17:23:25)

AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

cookieclickerer33 wrote:

is this like report or something??
I didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled
cookieclickerer33
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

cookieclickerer33 wrote:

is this like report or something??
I didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled
Report as in a report function
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

cookieclickerer33 wrote:

AllenderaGames wrote:

cookieclickerer33 wrote:

is this like report or something??
I didn't understanded you with: ‘' is this like report or something??’' because I only understand if your'e talking about the shape of the block, if that's the case it's reporter not report if you mispelled
Report as in a report function
ooooohhhh, yeah it reports
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

can you make some example uses after my explanation?

Here's one:


When an answer is correct or incorrect

when backdrop switches to [question time v]
ask [What's 6x6?] and wait
if <<(answer) = [36]> or <(answer) = (true::sensing)>> then


say [good! you earned an point!] for (2) secs
change [score v] by (1)
else
say [Uh Oh! that's wrong!] for (2) secs
change [score v] by (-1)
end
So can you make an example?
-Expo
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

medians wrote:

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
you don't understand these blocks are for more like quizzes like when a answer is correct or false

then you can easily use variables for that. The computer itself does not know whose cousin's uncle's niece's nephew's sister's brother's baby bro's God father died in 1842 (Joking)

AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

-Expo wrote:

AllenderaGames wrote:

medians wrote:

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
you don't understand these blocks are for more like quizzes like when a answer is correct or false

then you can easily use variables for that. The computer itself does not know whose cousin's uncle's niece's nephew's sister's brother's baby bro's God father died in 1842 (Joking)

Examples using variables?

Also if you want to you can make some examples with these blocks!

Last edited by AllenderaGames (Oct. 20, 2023 23:01:48)

Andygun11
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

AllenderaGames wrote:

Hey y'all! Can you or someone can make an workaround of this blocks?
forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found:
In variables:
set [variable v] to [true]

set [variable v] to [false]
In operators:
<not <>>//returns true
<<> and <>>//returns false
but I still want a workaround that can be made with sensing blocks ( only voluntary)
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing
personally i use:
<[1] = [1]>
<[1] = [0]>
AllenderaGames
Scratcher
100+ posts

Let's make 2 new blocks for true and false for sensing

Andygun11 wrote:

AllenderaGames wrote:

AllenderaGames wrote:

Hey y'all! Can you or someone can make an workaround of this blocks?
forget it I searched the posible workarounds but I searched on the wiki and some Scratchers wanted it as an operator block, anyways here are the workarounds I found:
In variables:
set [variable v] to [true]

set [variable v] to [false]
In operators:
<not <>>//returns true
<<> and <>>//returns false
but I still want a workaround that can be made with sensing blocks ( only voluntary)
and in this post I will interpret that add these blocks in sensing not in operators
and finally I think that these blocks could get added on future versions like 4.0 or the next update but still being 3.0. I don't mind if it's added in operators but I prefer that these blocks are added in sensing
personally i use:
<[1] = [1]>
<[1] = [0]>
yeah that also appeared
medians
Scratcher
1000+ posts

Let's make 2 new blocks for true and false for sensing

AllenderaGames wrote:

AllenderaGames wrote:

medians wrote:

If these are meant to be boolean blocks, you can use any condition that is either always true or always false.
you don't understand these blocks are for more like quizzes like when a answer is correct or false
and plus in this discussion I interpret that these blocks are reporters (sorry if I sounded rude)
Okay, but I was thinking you could've not realized to put <> for booleans.
Also, you could probably just use an equals block then.

Powered by DjangoBB