I think we should improve loop blocks...
First of all, remove the time delay in them. Repeat blocks run MUCH more slowly than forever blocks.
Second, make everything be executed in a loop before the program runs every loop again. Example: you have a repeat until block inside a forever loop, and a forever loop. The second forever loop will do whatever it's doing faster than the first. So we should remove this (with the exception of forever loops and loops including wait blocks).
Offline
I agree. I've found I have to duplicate what's inside of the loops to make them work faster.
Loops should work as fast as if the blocks were repeated multiple times, but without having to do so.
Offline
I completely agree. Loops can be such a pain...
Offline
MathWizz wrote:
fg123 wrote:
No. The second biggest. The first is SHOW/HIDE blocks.
You mean the show/hide list blocks?
Yeah, that should be up there.
I'd also love to see an 'execute together' loop block.
It would execute the blocks together simultaneously!
Offline
iCode-747 wrote:
MathWizz wrote:
fg123 wrote:
No. The second biggest. The first is SHOW/HIDE blocks.
You mean the show/hide list blocks?
Yeah, that should be up there.
I'd also love to see an 'execute together' loop block.
It would execute the blocks together simultaneously!
Really? That's what an execute together block would do?
I support all the ideas on this thread, but keep it on-topic, guys.
Offline
I support 100%!
Offline
Bump. If anything, this is the one update I want in scratch.
Seriously.... This would mean the following things would be possible:
-Infinite amounts of projectiles with 1 sprite
-Tower defense games
-First person shooters (slow, limited ones though)
Offline
juststickman wrote:
Bump. If anything, this is the one update I want in scratch.
Seriously.... This would mean the following things would be possible:
-Infinite amounts of projectiles with 1 sprite //Increased yes, infinite, not even close. Being able to dupe sprites is still needed to actually have many sprites
-Tower defense games //Maybe, but dupe blocks would make it possible probally
-First person shooters (slow, limited ones though) //It would speed up the 3D rendering process but it would still be too slow to make anything great
The loops in scratch are this way on purpose, you don't just code things and get this sort of delay automatically. The lag helps in things like movement and costume changing. But it makes anything you want to process quickly much much slower.
I rember posting a top 10 most needed improvements and this was #2 below sprite duping.
Offline
archmage wrote:
juststickman wrote:
Bump. If anything, this is the one update I want in scratch.
Seriously.... This would mean the following things would be possible:
-Infinite amounts of projectiles with 1 sprite //Increased yes, infinite, not even close. Being able to dupe sprites is still needed to actually have many sprites
-Tower defense games //Maybe, but dupe blocks would make it possible probally
-First person shooters (slow, limited ones though) //It would speed up the 3D rendering process but it would still be too slow to make anything greatThe loops in scratch are this way on purpose, you don't just code things and get this sort of delay automatically. The lag helps in things like movement and costume changing. But it makes anything you want to process quickly much much slower.
I rember posting a top 10 most needed improvements and this was #2 below sprite duping.
I know they are this way on purpose, so I'm asking that they're not made this way.
Would it be possible to hack a block that doesn't have the delay?
Offline