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

#1 2010-04-20 19:35:06

rhinorulz
Scratcher
Registered: 2010-04-18
Posts: 13

Forever statments

You aught to be able to do a
[blocks]<forever> (variable).[/blocks]  this would be used in instances were you always want a variable to do or equal something.  I have come across several instances where i needed this.  what is your opinion.

Offline

 

#2 2010-04-20 20:27:33

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Forever statments

You can just do
http://www.freeimagehosting.net/uploads/aea5e051b6.gif
It does the same thing.

Last edited by hmnwilson (2010-04-20 20:28:23)


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#3 2010-04-21 14:17:46

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Forever statments

Use the =... oh wait hmw has done it. Oh well.



The following errors need to be corrected before the message can be posted:

* At least 60 seconds have to pass between posts. Please wait a little while and try posting again. We have this rule to annoy you.


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#4 2010-04-22 09:10:48

rhinorulz
Scratcher
Registered: 2010-04-18
Posts: 13

Re: Forever statments

That wont work  want a forever X = 3 for example if only does something IF it is true.  I want to make it true always

Offline

 

#5 2010-04-22 11:03:51

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

Re: Forever statments

rhinorulz wrote:

That wont work  want a forever X = 3 for example if only does something IF it is true.  I want to make it true always

<forever>
<if>
<end>
<end>


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

 

#6 2010-04-23 16:34:57

rhinorulz
Scratcher
Registered: 2010-04-18
Posts: 13

Re: Forever statments

do you not read "forever if" won't work.  I want "forever (variable) = #"

Last edited by rhinorulz (2010-04-23 16:35:11)

Offline

 

#7 2010-04-23 18:51:45

climber59
Scratcher
Registered: 2009-12-15
Posts: 100+

Re: Forever statments

<forever>
<set{ variable }to( 100 )
<end>

Last edited by climber59 (2010-04-23 18:52:12)


Check out my projects if you have a chance.

Offline

 

#8 2010-04-23 18:58:13

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Forever statments

forever
   set variable to number
end

Offline

 

#9 2010-04-24 17:42:06

Phi_Lho
Scratcher
Registered: 2010-03-22
Posts: 75

Re: Forever statments

Another solution is to just not change this variable...

That said, I quickly found myself wishing to have constants in Scratch. Thus it would forbid to put them in
<change{ CONSTANT }by( 1 )>
for example, and perhaps make them have a different color.


http://i241.photobucket.com/albums/ff159/PhiLho/KM150.pnghttp://i241.photobucket.com/albums/ff159/PhiLho/PhiLhoLogo.png

Offline

 

Board footer