Discuss Scratch

theonlygusti
Scratcher
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:

run without screen refresh {} :: control
see 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
Scratcher
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
Scratcher
1000+ posts

New Block - run without screen refresh

AonymousGuy wrote:

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
Scratcher
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
Scratcher
1000+ posts

New Block - run without screen refresh

djdolphin wrote:

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.
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.

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
Scratcher
1000+ posts

New Block - run without screen refresh

Some more design ideas for the block:
evaluate {} :: control

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
Feel 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.

Last edited by theonlygusti (Dec. 31, 2016 14:40:18)


theonlygusti
Scratcher
1000+ posts

New Block - run without screen refresh

Bump, because this needs to be added.

Blueinkproductions
Scratcher
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.

Generation 2: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
____                  _____  _______              
| \ | | | | | |\ | | /
|___/ | | | |__ | | \ | |/
| \ | | | | | | \ | |\
| | | | | | | | \ | | \
|___/ L____ \___/ |_____ ___|___ | \| | \
PRODUCTIONS





















































Here's a hint: support = support.

<shameless self promotion>follow me! follow me! follow me! love my stuff! love my stuff! love my stuff! follow me! love my stuff! remix my stuff! follow me! follow me! </shameless self promotion>
theonlygusti
Scratcher
1000+ posts

New Block - run without screen refresh

This would be so helpful for so many projects. Especially 1sprite 1script projects.

theonlygusti
Scratcher
1000+ posts

New Block - run without screen refresh

bump

theonlygusti
Scratcher
1000+ posts

New Block - run without screen refresh

Blueinkproductions wrote:

Notably, CB's do not add atomicity to scripts, instead, they just run everything under the CB before redrawing the screen. Support.
Thanks I will change my mistakes.

theonlygusti
Scratcher
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 circle
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
However, the block should be available to scripts outside of a cb.

theonlygusti
Scratcher
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
Scratcher
1000+ posts

New Block - run without screen refresh

Look at http://scratch.mit.edu/projects/25950765/ - with this block this project could easily be a 1sprite1script project.

GrannyCookies
Scratcher
100+ posts

New Block - run without screen refresh

Support.

Callumhedgehog1
Scratcher
1 post

New Block - run without screen refresh

we could make it not lag like fresh ok
testingscript64
Scratcher
100+ posts

New Block - run without screen refresh

Support

Give an internet
Random Forum Post URL Generator or Random Project URL Generator
You have been visited by Bob. Slenderman sightings and scary hallucinations will come to you, but you can stop them only if you comment “Thanks Bob” on my profile.
person345
Scratcher
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
Scratcher
44 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
Scratcher
1000+ posts

New Block - run without screen refresh

No support. Use custom blocks that are set to “Run Without Screen Refresh”

cute cute cute cute cute

rip in pizza ATs

Powered by DjangoBB

Standard | Mobile