This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

#1 2011-10-19 23:27:19

Feniul
Scratcher
Registered: 2011-03-07
Posts: 6

one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

This Is Driving Me Nuts Please Make A While Block!!!!!!!!!!!!!!!!!!!!!1  yikes

Offline

 

#2 2011-10-20 01:19:58

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

[Repeat until <not <condition> >] does that same thing as [while <condition>]. ^_^

I've also moved this to Suggestions, where it is better suited.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-10-20 07:06:16

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

While (no pun intended) Harakou is right, you could also use:

[forever < >]
[ ][if < >]
[ ][ ]
{Put script here}
[ ][________________]
[__________________]


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#4 2011-10-20 15:40:30

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

henley wrote:

While (no pun intended) Harakou is right, you could also use:

[forever < >]
[ ][if < >]
[ ][ ]
{Put script here}
[ ][________________]
[__________________]

That's different though, because a while loop (and my workaround) will terminate and move on to the next bit of code when the condition is no longer satisfied, but a forever if loop will continually check no matter what.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2011-10-22 10:08:52

nightmarescratcher
Scratcher
Registered: 2011-10-10
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

big_smile

You can always count on mods to fix up a situation.


http://fc07.deviantart.net/fs70/f/2011/171/f/3/derpy_hooves_derp_sig_by_alicehumansacrifice1-d3jg613.png

Offline

 

#6 2011-10-23 20:10:33

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

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

Or
Repeat until <condition>


Hai.

Offline

 

#7 2011-10-23 20:32:33

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

Or
[When green flag clicked]
[wait until
<(varible)=condition>]
[Your script]


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#8 2011-10-24 01:54:00

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

TVflea wrote:

Or
[When green flag clicked]
[wait until
<(varible)=condition>]
[Your script]

that won't work because it won't repeat


Posts: 20000 - Show all posts

Offline

 

#9 2011-10-24 14:08:35

catsarah
Scratcher
Registered: 2010-05-24
Posts: 79

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

what are we talking about?


http://26.media.tumblr.com/tumblr_lra9xx6PKG1r2h4emo1_500.gif     so very large? its that BIG???

Offline

 

#10 2011-10-25 17:06:57

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

Harakou wrote:

[Repeat until <not <condition> >] does that same thing as [while <condition>]. ^_^


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#11 2011-10-25 17:37:45

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

catsarah wrote:

what are we talking about?

While loops in programming, so something can be repeated while something is true.


Posts: 20000 - Show all posts

Offline

 
  • Index
  •  » Suggestions
  •  » one thing about scratch that drives me nuts: IT HAS NO WHILE BLOCK!!!!

Board footer