This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-11-28 06:22:27

Aditya007
Scratcher
Registered: 2012-11-27
Posts: 63

Forever Command

Forever Command isn't having a attacher below it. I think it should actually have it.


Wolf_OS!!!  smile  Check My Stuff  tongue  Need Help?  Currently, I am http://blocks.scratchr.org/API.php?user=Aditya007&action=onlineStatus&type=square
http://i49.tinypic.com/15gy1j6.jpg

Offline

 

#2 2012-11-28 07:30:45

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Forever Command

Um, the forever block is goes forever so there wouldn't really be a point ...


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#3 2012-11-28 08:25:38

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Forever Command

It won't ever get out of the loop without an "if | else", so there isn't really a need for this.

Last edited by jontmy00 (2012-11-28 08:26:21)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-11-28 08:33:27

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Forever Command

jontmy00 wrote:

It won't ever get out of the loop without an "if | else", so there isn't really a need for this.

why if | else ?

Last edited by dvd4 (2012-11-28 08:33:42)


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#5 2012-11-28 08:37:27

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Forever Command

This:

when gf clicked
broadcast [start v]

when I receive [start v]
forever
if <condition 1>
whatever
else
broadcast [start v]
end
whatever

Last edited by jontmy00 (2012-11-28 08:37:41)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#6 2012-11-28 09:43:20

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: Forever Command

jontmy00 wrote:

This:

when gf clicked
broadcast [start v]

when I receive [start v]
forever
if <condition 1>
whatever
else
broadcast [start v]
end
whatever

Oh.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#7 2012-11-28 11:17:11

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Forever Command

You can always exit out of a forever loop using the

 stop script 
block, and starting another script that contains what you would have put below the forever loop using broadcasts! The attachment not being there on the forever loop is to help new programmers understand it's function and how it can be used  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#8 2012-11-28 20:16:25

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Forever Command

Aditya007 wrote:

Forever Command isn't having a attacher below it. I think it should actually have it.

Since the code inside runs forever, it would never reach the outside, so you can't really attach anything to it as those blocks would never be executed. Use a repeat until if you want to leave the loop.

Offline

 

#9 2012-12-01 18:44:36

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Re: Forever Command

I agree with everyone above me.  tongue


~This sig is false~
I'm on teh wiki!

Offline

 

#10 2012-12-25 12:20:03

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Forever Command

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer