Discuss Scratch
- Discussion Forums
- » Suggestions
- » New Block - run without screen refresh
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
I think we need a c-block that runs sections of code within a single frame, like a custom block with “no screen refresh” enabled. It would allow for blocks such as “repeat ()” and “repeat until <>” to be used more freely within 1sprite1script projects, where you generally are uinable to use them because of the delay caused by their repetitions.
The block would be very similar to the old all at once block.
The block could like like this:
As I've said, blocks like “forever” and “repeat until <>” cannot be used within 1sprite1script projects because they have been programmed with a delay between iterations. Whilst this is helpful for newer, inexperienced Scratchers I think more advanced Scratchers should have the ability to cut out this delay, which is fatal to some projects.
Please let me know if you support.
The block would be very similar to the old all at once block.
The block could like like this:
run without screen refresh {} :: controlsee more block design ideas
As I've said, blocks like “forever” and “repeat until <>” cannot be used within 1sprite1script projects because they have been programmed with a delay between iterations. Whilst this is helpful for newer, inexperienced Scratchers I think more advanced Scratchers should have the ability to cut out this delay, which is fatal to some projects.
Please let me know if you support.
Last edited by theonlygusti (Dec. 31, 2016 14:38:41)
- AonymousGuy
-
1000+ posts
New Block - run without screen refresh
define doSomeAction //run without screen refresh
...
Although it would be convenient to not always have to make a custom block for it…
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
define doSomeAction //run without screen refresh
...
Although it would be convenient to not always have to make a custom block for it…
I know this, but I would like the feature added for, yes, convenience, but also for 1 sprite 1 script projects, where you cannot have a custom block.
- djdolphin
-
1000+ posts
New Block - run without screen refresh
There used to be a block called "all at once". It was removed because atomic functions were added, and I doubt it's ever coming back.
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
all at once". It was removed because atomic functions were added, and I doubt it's ever coming back.I know this, I even talked about it in my post. I think it should come back, if it did come back, “run without screen refresh” would be made redundant, as all custom blocks could have their code within an all at once block. It will still be super helpful for other parts of the project as well, when a custom block would be stupid to have. Putting one repeat statement into a custom block, just to have it run all at once? It's stupid. Especially for 1 sprite 1 script projects. There used to be a block called "
Also, it wasn't removed simply because atomic functions were added, but because there was some ambiguity about its name. I believe the name “run without screen refresh” is much less ambiguous.
Last edited by theonlygusti (June 17, 2016 21:47:25)
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
Some more design ideas for the block:
evaluate {} :: controlFeel free to add your own design ideas. The reason I added these is to give the ST naming suggestions, because I think one of the reasons why “all at once” has not returned is because the name wasn't very catchy or helpful. I think the “run: without screen refresh” is one of the better names, and please, post ideas of your own.
evaluate {
} show result :: control
run {
} without screen refresh :: control
execute {} :: grey
all at once {} :: control
do {
} all at once :: control
run {
} with light speed :: grey
Turbo Mode {} :: grey
run in [Turbo Mode v] {} :: control
single frame {} :: control
atomicize {} :: control
Last edited by theonlygusti (Dec. 31, 2016 14:40:18)
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
Bump, because this needs to be added.
- Blueinkproductions
-
1000+ posts
New Block - run without screen refresh
Notably, CB's do not add atomicity to scripts, instead, they just run everything under the CB before redrawing the screen. Support.
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
This would be so helpful for so many projects. Especially 1sprite 1script projects.
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
Thanks Notably, CB's do not add atomicity to scripts, instead, they just run everything under the CB before redrawing the screen. Support.

- theonlygusti
-
1000+ posts
New Block - run without screen refresh
This block could also be used within custom blocks, and make the run without screen refresh redundant:
define draw a circleHowever, the block should be available to scripts outside of a cb.
run :: custom cstart
repeat (360)
move (1) steps
turn cw (1) degrees :: motion stack
end
without screen refresh :: custom cend
or :: grey hat
define ...
run :: custom-arg cstart
...
without screen refresh :: custom-arg cend
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
So it could inherit the custom block colour scheme and appear under the more blocks pallette.
- theonlygusti
-
1000+ posts
New Block - run without screen refresh
Look at http://scratch.mit.edu.ezproxyberklee.flo.org/projects/25950765/ - with this block this project could easily be a 1sprite1script project.
- Callumhedgehog1
-
1 post
New Block - run without screen refresh
we could make it not lag like fresh ok

- person345
-
39 posts
New Block - run without screen refresh
I need that turbo mode block…
<[bacon<[bacon] > [ ]>] > [ ]>
what is the point of this
this isn't a real block
I think i'm just bored
and just so happen to be typing
Last edited by person345 (Sept. 13, 2014 16:17:03)
- 08draven
-
69 posts
New Block - run without screen refresh
define draw a circle
run :: custom cstart
repeat (360)
move (1) steps
turn cw (1) degrees :: motion stack
end
without screen refresh :: events
or :: grey hat
define ...
run :: custom-arg cstart
...
without lag :: control
Last edited by 08draven (Sept. 14, 2014 00:05:41)
- MegaApuTurkUltra
-
1000+ posts
New Block - run without screen refresh
No support. Use custom blocks that are set to “Run Without Screen Refresh”