Easy:
1) make a button sprite
2) script (in button sprite)
when sprite clicked
set [ switch ] to [ ( 1 - ( switch ) ) ]
3) if < switch 1 on > = if < ( switch ) = ( 1 ) >
Offline
By setting a variable to either 0 or 1 to be false or true, we can use this:
<repeat( x )]
|
<end>
Instead of what we could do if there were boolean variables:
<if><( x )>
|
<end>
Last edited by billyedward (2010-03-01 23:54:17)
Offline