This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Improving loops (AKA making them faster and changing timing)

#1 2010-05-29 03:59:59

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Improving loops (AKA making them faster and changing timing)

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


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#2 2010-05-29 09:20:33

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

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

 

#3 2010-05-29 19:26:06

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

I completely agree. Loops can be such a pain...

Offline

 

#4 2010-05-29 19:35:05

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

I agree 100%.

This should be a priority for Scratch 2.0.


-End Transmission-

Offline

 

#5 2010-05-30 20:29:18

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

iCode-747 wrote:

I agree 100%.

This should be a priority for Scratch 2.0.

Lets make a correction:

This should the BIGGEST priority for Scratch 2.0.


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#6 2010-05-30 20:35:04

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

No. The second biggest. The first is SHOW/HIDE blocks.  wink


Hai.

Offline

 

#7 2010-05-30 20:38:04

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

fg123 wrote:

No. The second biggest. The first is SHOW/HIDE blocks.  wink

You mean the show/hide list blocks?


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#8 2010-05-30 21:39:07

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

MathWizz wrote:

fg123 wrote:

No. The second biggest. The first is SHOW/HIDE blocks.  wink

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!  smile


-End Transmission-

Offline

 

#9 2010-05-30 21:47:47

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

iCode-747 wrote:

MathWizz wrote:

fg123 wrote:

No. The second biggest. The first is SHOW/HIDE blocks.  wink

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!  smile

Really? That's what an execute together block would do?  yikes
big_smile  I support all the ideas on this thread, but keep it on-topic, guys.

Offline

 

#10 2010-05-31 01:55:21

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

I support 100%!  big_smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#11 2010-06-17 11:52:37

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

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)


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#12 2010-06-17 15:47:09

coka
Scratcher
Registered: 2007-11-03
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

Great idea!  tongue


http://i42.tinypic.com/2rot8c2.png

Offline

 

#13 2010-06-17 15:58:16

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#14 2010-06-17 16:03:14

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Improving loops (AKA making them faster and changing timing)

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

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?


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 
  • Index
  •  » Suggestions
  •  » Improving loops (AKA making them faster and changing timing)

Board footer