Discuss Scratch

bittensboy
Scratcher
100+ posts

New Sensing Blocks

Sensing Blocks Related to events for green flags.
Yes i know there's:
when flag clicked
But There's Frame Pauses Like Every 3 frames. How To Fix? NEW BOOLEAN BLOCKS!!!!!!!!!!
is @greenFlag hit?::sensing boolean
is @greenFlag held down?::sensing boolean
These could be used for removing pauses so like this script:
when [any v] key pressed
forever
if <is @greenFlag held down?::sensing> then
. . .
end
end
MinceraftFan
Scratcher
100+ posts

New Sensing Blocks

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
bittensboy
Scratcher
100+ posts

New Sensing Blocks

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
when (you don't get it v) key pressed
forever{
say [theres no freme pausz wdym]
}::control

Last edited by bittensboy (Aug. 18, 2023 23:38:11)

MinceraftFan
Scratcher
100+ posts

New Sensing Blocks

bittensboy wrote:

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
when [you don't get it v] pressed in order::makeymakey hat
what does the code even do

so every time you hold the green flag it runs code, but you have to press a random key first, also scratch can't detect you holding the green flag only pressing it
bittensboy
Scratcher
100+ posts

New Sensing Blocks

MinceraftFan wrote:

bittensboy wrote:

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
when [you don't get it v] pressed in order::makeymakey hat
but you have to press a random key first, also scratch can't detect you holding the green flag only pressing it
And?

Last edited by bittensboy (Aug. 18, 2023 23:40:18)

sowut123
Scratcher
1000+ posts

New Sensing Blocks

bittensboy wrote:

Sensing Blocks Related to events for green flags.
Yes i know there's:
when flag clicked
But There's Frame Pauses Like Every 3 frames. How To Fix? NEW BOOLEAN BLOCKS!!!!!!!!!!
is @greenFlag hit?::sensing boolean
is @greenFlag held down?::sensing boolean
These could be used for removing pauses so like this script:
when [any v] key pressed
forever
if <is @greenFlag held down?::sensing> then
. . .
end
end
Does holding down the green flag actually do anything outside of these booleans though? Seems kinda pointless.

Last edited by sowut123 (Aug. 19, 2023 00:27:29)

bittensboy
Scratcher
100+ posts

New Sensing Blocks

it's not pointless, you could do something like something differnt happens between click flag, and hold flag.
MinceraftFan
Scratcher
100+ posts

New Sensing Blocks

bittensboy wrote:

it's not pointless, you could do something like something differnt happens between click flag, and hold flag.
You can already do that, you don't need a sensing block, also the green flag is just there to trigger an event, it's not used for any other purpose
bittensboy
Scratcher
100+ posts

New Sensing Blocks

‏yas uoy did tahw ,yeh
bittensboy
Scratcher
100+ posts

New Sensing Blocks

keyy
bittensboy
Scratcher
100+ posts

New Sensing Blocks

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
it would be easier for new scratchers rather than something like
when flag clicked
broadcast [FLAG v]

when i recieve [FLAG v]::events hat
start


define start
run @greenFlag::control
ignore [FLAG v] after last script::events
MinceraftFan
Scratcher
100+ posts

New Sensing Blocks

bittensboy wrote:

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
it would be easier for new scratchers rather than something like
when flag clicked
broadcast [FLAG v]

when i recieve [FLAG v]::events hat
start


define start
run @greenFlag::control
ignore [FLAG v] after last script::events
I have no clue what you're trying to say. Scratch's green flag works perfectly and it doesn't need any changing or additional blocks to go with it.

Also, I still have no clue what you're suggesting since you seem to keep making up different blocks as you go, so if you want to show a better example for what you need this new feature for you can link a project that you want to use this feature on.

Last edited by MinceraftFan (Aug. 19, 2023 21:37:12)

bittensboy
Scratcher
100+ posts

New Sensing Blocks

I'm not Making Up Blocks, You Just Haven't Used PenguinMod.
bittensboy
Scratcher
100+ posts

New Sensing Blocks

always::events hat

never::events hat

say [#45f]

while <>{
}::control

stop speaking::looks

run @greenFlag::control

recieved data::reporter events

when i recieve [message1 v] with data [abc]::hat events

::

::boolean

::reporter

::hat

set [label v] of block ((::control)@addInput::grey) to []::control
MinceraftFan
Scratcher
100+ posts

New Sensing Blocks

bittensboy wrote:

always::events hat

never::events hat

say [#45f]

while <>{
}::control

stop speaking::looks

run @greenFlag::control

recieved data::reporter events

when i recieve [message1 v] with data [abc]::hat events

::

::boolean

::reporter

::hat

set [label v] of block ((::control)@addInput::grey) to []::control
well then that's not scratch, that's penguinmod.

Last edited by MinceraftFan (Aug. 20, 2023 16:39:50)

bittensboy
Scratcher
100+ posts

New Sensing Blocks

MinceraftFan wrote:

bittensboy wrote:

always::events hat

never::events hat

say [#45f]

while <>{
}::control

stop speaking::looks

run @greenFlag::control

recieved data::reporter events

when i recieve [message1 v] with data [abc]::hat events

::

::boolean

::reporter

::hat

set [label v] of block ((::control)@addInput::grey) to []::control
well then that's not scratch, that's penguinmod.
idc
im not suggesting those blocks, anyways this is going offtopic.
Let's Focus On The Main Idea:
green falg pressed?
green flag held for seconds?
BloatedUnderpants3
Scratcher
100+ posts

New Sensing Blocks

When you press the green flag, it also stops the scripts currently running before triggering the green flag clicked event, so there is no use for your new blocks, as any code containing them would be stopped before the new blocks are triggered.
BendyOl183
Scratcher
500+ posts

New Sensing Blocks

bittensboy wrote:

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
it would be easier for new scratchers rather than something like
when flag clicked
broadcast [FLAG v]

when i recieve [FLAG v]::events hat
start


define start
run @greenFlag::control
ignore [FLAG v] after last script::events

It isn’t that complicated, we don’t need to make Scratch extremely easy, that is only like 7 blocks. A new scratcher can cope with having to add 7 blocks.

Also, the green flag clicked block just triggers an event when the green flag is clicked, and if the green flag is clicked it resets the project so this would be useless. If you want something to change after you click the flag a lot of times, then you can put :

when green flag clicked
change [… v] by (1)

when green flag clicked
forever
if <(… :: variables) = (…) :: operators> then
… :: grey
end
end
bittensboy
Scratcher
100+ posts

New Sensing Blocks

BloatedUnderpants3 wrote:

When you press the green flag, it also stops the scripts currently running before triggering the green flag clicked event, so there is no use for your new blocks, as any code containing them would be stopped before the new blocks are triggered.
i do not c@re

BendyOl183 wrote:

bittensboy wrote:

MinceraftFan wrote:

just make your own green flag like when this button pressed broadcast green flag, also there are no frame pauses so idk what that means
it would be easier for new scratchers rather than something like
when flag clicked
broadcast [FLAG v]

when i recieve [FLAG v]::events hat
start


define start
run @greenFlag::control
ignore [FLAG v] after last script::events

It isn’t that complicated, we don’t need to make Scratch extremely easy, that is only like 7 blocks. A new scratcher can cope with having to add 7 blocks.

Also, the green flag clicked block just triggers an event when the green flag is clicked, and if the green flag is clicked it resets the project so this would be useless. If you want something to change after you click the flag a lot of times, then you can put :

when green flag clicked
change [… v] by (1)

when green flag clicked
forever
if <(… :: variables) = (…) :: operators> then
… :: grey
end
end
I Still do not c@re

Last edited by bittensboy (Aug. 20, 2023 20:48:21)

BloatedUnderpants3
Scratcher
100+ posts

New Sensing Blocks

bittensboy wrote:

i do not c@re
ignorance will not change the truth

Powered by DjangoBB