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

#1 2008-08-12 04:00:20

themaker123
Scratcher
Registered: 2008-07-04
Posts: 7

need more help !!!!

how do i when a varible is at a certion make it do somthing i have tryed a couple of ways but i am not good with varibles

Offline

 

#2 2008-08-12 07:12:02

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

Re: need more help !!!!

themaker123 wrote:

how do i when a varible is at a certion make it do somthing i have tryed a couple of ways but i am not good with varibles

On the sprite that you want something to happen on, you can set up a block like this
[blocks]
<when green flag clicked>
<set{ Some Variable }to( 0
<wait until><( <{ Some Variable }> <>> 10  )>
<change size by( 100
or whatever blocks you want to have happen
[/blocks]

This one is set up for when a value gets larger than 10.  You can also set it up for when a value gets less than a value by using the less-than comparison "<".

This example is good if the thing you want to have happen only happens once.  If it can happen many times, you might want to use a Forever IF loop block.


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

Offline

 

Board footer