attribute changing back and forth from 0 to 1 by pressing one button
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:)
any help would be great:)
Comments
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