please explain what you are trying to do, i think you want to hit a single button and have it toggle between true and false right? I'm not sure how exactly to do that if you have a boolean, but you can easily have a switch toggle between 1 and 0
yes you use a interger and set it to zero. ill call the attribute switch as a example
Then in the button have a rule when touch is pressed change attribute switch to (switch+1)%2
that will have it toggle between 0 and 1. So it starts at zero when you touch it it changes 1 then when you touch again it changes to zero and toggles between them
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
You can use a bolean and just set it to interpolate the attribute over a duration of .1 seems like have done that before to get it to swtich back and forth but I kinda like johns method better I think I will try that next
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Then in the button have a rule when touch is pressed change attribute switch to (switch+1)%2
that will have it toggle between 0 and 1. So it starts at zero when you touch it it changes 1 then when you touch again it changes to zero and toggles between them