attribute changing back and forth from 0 to 1 by pressing one button

birkulesbirkules Member, PRO Posts: 29
edited November -1 in Working with GS (Mac)
hi is it possible to change an attribute back and forth by just pressing one button or do i need to make one that makes it 0 and one that makes it 1?
any help would be great:)

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Hey there,

    Have this in your button:

    When touch is pressed
    -change attribute to (attribute+1)%2

    that will toggle between 0 and 1 with each press like you want

    cheers
  • birkulesbirkules Member, PRO Posts: 29
    thank you very much mate:)
Sign In or Register to comment.