Discuss Scratch

medians
Scratcher
1000+ posts

New hat/startup/event Block

BrodyTheRedflower
Scratcher
100+ posts

New hat/startup/event Block

when green flag clicked
forever
reset timer
end

when [timer v] > (0.01)
forever
if <... :: gray> then
... :: gray
end
end

Last edited by BrodyTheRedflower (Feb. 5, 2023 15:43:14)

medians
Scratcher
1000+ posts

New hat/startup/event Block

BrodyTheRedflower wrote:

when green flag clicked
forever
reset timer
end

when [timer v] > (0.01)
forever
if <... :: gray> then
... :: gray
end
end
Also if you want to keep timer:
k7e
Scratcher
1000+ posts

New hat/startup/event Block

medians
Scratcher
1000+ posts

New hat/startup/event Block

Bringing this topic up again because it appears not to show on the second page like it should.

k7e wrote:

Duplicate.
The topics got merged by the way.
The other topic name was “when < > (hat block)”, and can be found here:
https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/2471/?page=1#post-298154
And this one was apart of the original topic:
https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/2471/?page=2#post-1896306

Last edited by medians (March 21, 2023 03:17:30)

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

hello
Rafael_Bagi123
Scratcher
86 posts

New hat/startup/event Block

a if head/startup/event block, for example:

(that If 1=1 then was to be like a when key pressed)

If [ 1=1]  then...
move (10) steps

its a lot better than have to use:

when green flag clicked
forever
wait until <1=1>
if <1=1> then
move (10) steps
end
end
medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

wilhelm43
Scratcher
1000+ posts

New hat/startup/event Block

In a Scratch fork, this block already exists.
And to prevent continuous use, the block is blocked after one execution, until the condition returns to “False”.
It's not the best idea, but it's not so bad. Semi-support.
mumu245
Scratcher
1000+ posts

New hat/startup/event Block

wilhelm43 wrote:

(#130)
And to prevent continuous use, the block is blocked after one execution, until the condition returns to “False”.
This is the behaviour of all event blocks anyways.
medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians wrote:

Someone seemed to be suggesting this somewhere else, so..
JelliBeens-1
Scratcher
71 posts

New hat/startup/event Block

when [timer v] > ((timer) - <some condition::sensing>)::control
is the same as
when <some condition::sensing>::control
medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

medians wrote:

medians wrote:

medians wrote:

medians
Scratcher
1000+ posts

New hat/startup/event Block

medians wrote:

Powered by DjangoBB