Help making a toggle switch

leskarleskar Member Posts: 12
edited November -1 in Working with GS (Mac)
Can anyone help me write some basic behaviors for a toggle switch? As of now I set up a boolean attribute as "isOn" set to false. Then set up an actor with an image of the button. When the conditions of mouse position is over and mouse button pressed are valid, the image of the button changes and the "isOn" attribute is set to true. This works for toggling the button on, but not toggling the button off. It seems like there is a simple way to do this, but I am stumped. Any ideas would be greatly appreciated. Thanks.

Comments

Sign In or Register to comment.