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
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.
Offline