Discuss Scratch
- BrodyTheRedflower
-
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
-
1000+ posts
New hat/startup/event Block
Also if you want to keep timer:when green flag clicked
forever
reset timer
end
when [timer v] > (0.01)
forever
if <... :: gray> then
... :: gray
end
end

- medians
-
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.
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
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)
- Rafael_Bagi123
-
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)
its a lot better than have to use:
(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
- wilhelm43
-
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.
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.
- medians
-
1000+ posts
New hat/startup/event Block
Someone seemed to be suggesting this somewhere else, so..
- JelliBeens-1
-
71 posts
New hat/startup/event Block
when [timer v] > ((timer) - <some condition::sensing>)::controlis the same as
when <some condition::sensing>::control