loops

user_icon Jens shared it 4 months, 2 weeks ago
218 views, 7 people love it, 1 tagger, 10 downloads, in 2 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

bubble-07 bubble-07 1 month, 3 weeks ago

Oh! I made one of these, only with more scripts being tested! (link to project)

(view all replies)
Comment Reply

bubble-07 bubble-07 2 months, 2 weeks ago

Hmm... That means... Optomization! Yayy!!! Now only if there were more things you could do to optomize scratch that aren't expected...

(view all replies)
Comment Reply

girlydog girlydog 2 months, 2 weeks ago

No affence, but I don't get it!

(view all replies)
Comment Reply

Moonfalcon Moonfalcon 1 week ago

It says that the repeat block is slower than the forever block and the forever block is slower than a colum of scripts.

(view all replies)
Comment Reply

HarryPotterGal HarryPotterGal 2 months, 3 weeks ago

Hmm... it seems that the forever repeat loop goes smoother as the forever motion loop goes in more of a choppy motion....

(view all replies)
Comment Reply

HarryPotterGal HarryPotterGal 2 months, 3 weeks ago

Hmm... it seems that the forever repeat loop goes smoother as the forever motion loop goes in more of a choppy motion....

(view all replies)
Comment Reply

deatheater deatheater 2 months, 3 weeks ago

it probably does that because it takes a little while for it to loop back :)

(view all replies)
Comment Reply

forest forest 3 months, 1 week ago

I probably will ask this the wrong way but..just wondering can you elucidate more on how scratch processes update cycles..etc.. this shows the why and the result..

(view all replies)
Comment Reply

fullmoon fullmoon 3 months, 2 weeks ago

I think you'll find this interesting; I seem to have stumbled across right-click sensing in Scratch. (link to project).

(view all replies)
Comment Reply

drewse drewse 3 months, 2 weeks ago

nice, check out my project that experiments with the time it takes Scratch to compute huge calculations: (link to project)

(view all replies)
Comment Reply

stevii stevii 3 months, 2 weeks ago

PLEASE MAKE YOUE OWN VIDEO AND POST IT!(link to project)

(view all replies)
Comment Reply

dapontes dapontes 3 months, 4 weeks ago

Now, I understand better...

(view all replies)
Comment Reply

bosox397 bosox397 4 months ago

(link to project)

(view all replies)
Comment Reply

LoneTuxedo LoneTuxedo 4 months ago

Oh, thanks!.... so that's why my project was so choppy....

(view all replies)
Comment Reply

ihaveamac ihaveamac 4 months, 1 week ago

Click on the Scripts and it will change into a cat.

(view all replies)
Comment Reply

Lanie Lanie 4 months, 1 week ago

I never would have thought that 2 different scripts that do the same thing have different results

(view all replies)
Comment Reply

goch goch 4 months, 1 week ago

Very informative. I like the cats, which appear by clicking the sprites.

(view all replies)
Comment Reply

Jens Jens 4 months, 1 week ago

You're the first one to notice them :) thank you, goch.

(view all replies)
Comment Reply

fullmoon fullmoon 4 months, 1 week ago

I'm sure people trying to optimize their 3D wireframe models will try to use this...it's really interesting!

(view all replies)
Comment Reply

S65 S65 4 months, 2 weeks ago

A way to optimize this and make it less choppy at the same time: split the one huge forever loop into 10, each containing the move and wait.

(view all replies)
Comment Reply

Cyclone103 Cyclone103 4 months, 2 weeks ago

WHOA! Cool! I never would have thought of trying this! Seems repeat and repeated scripts are not the same thing!

(view all replies)
Comment Reply

HarryPotterGal HarryPotterGal 4 months, 2 weeks ago

Thats rather interesting....

(view all replies)
Comment Reply

Paddle2See Paddle2See 4 months, 2 weeks ago

So it looks like Scratch "saves up" move statements in a loop and executes them all at the end of the loop? I am sure if I were to put a Wait statement between the Move blocks it would be different, yes?

(view all replies)
Comment Reply

Jens Jens 4 months, 2 weeks ago

You're right. Scratch currently does one display cycle per loop iteration. Wait statements within a loop also trigger a display update. So the lesson to be learned from this is: You can warp computational stuff by putting several statements into a loop or into different threads. As this will supress display cycles this method may not be adequate for anything visual.

(view all replies)
Comment Reply

chalkmarrow chalkmarrow 4 months, 2 weeks ago

lol. great graphical way to demonstrate what is sorta a "race" condition.

(view all replies)
Comment Reply

demosthenes demosthenes 4 months, 2 weeks ago

I was doing a time test once and I noted that if something repeats 41 times it is 1 second 81 and it is 2 seconds. Just thought you might like to know that.

(view all replies)
Comment Reply

Emi-Emi Emi-Emi 4 months, 2 weeks ago

whoa, that's... weird but cool lol

(view all replies)
Comment Reply

bosox397 bosox397 4 months, 2 weeks ago

niece

(view all replies)
Comment Reply

SonicPops SonicPops 4 months, 2 weeks ago

Cool! Instresting expiriment with the 'loop' blocks.

(view all replies)
Comment Reply