Page 1 of 1

How make this button effect ?

Posted: 04 Jul 2018, 20:03
by eguana
I have 6 buttons.
buttons.png
buttons.png (4.06 KiB) Viewed 4841 times
When I once click on any button, it becomes active. When I press the second time, the button goes to the normal state.

When I press the button, the other buttons should go into normal state, they must be inactive
disable.png
disable.png (5.85 KiB) Viewed 4841 times
How disabled other buttons, i don't know, please help. I use logic toggle, switch, value.


Ventuz scene
buttons.png
buttons.png (4.06 KiB) Viewed 4841 times

Re: How make this button effect ?

Posted: 05 Jul 2018, 09:39
by Joe Styles
Hi Eguana,

If you use containers you can pass out the container index which will let you know which button has been pressed. Using logic you can then toggle it back off again. I've attached a scene to illustrate.

Hope that helps!
Joe

Re: How make this button effect ?

Posted: 05 Jul 2018, 10:06
by Dennis
or enjoy this...
Button_Logic_2932.vza
(22.09 KiB) Downloaded 485 times

regArts
Dee

:ugeek:

Re: How make this button effect ?

Posted: 05 Jul 2018, 10:47
by eguana
Joe Styles wrote:
05 Jul 2018, 09:39
Hi Eguana,

If you use containers you can pass out the container index which will let you know which button has been pressed. Using logic you can then toggle it back off again. I've attached a scene to illustrate.

Hope that helps!
Joe
Joe it is best logic with index.

I suffered yesterday how to transfer the index when the button is pressed. Thanks for the great idea.