Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

How make this button effect ?

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
eguana
Posts: 5
Joined: 04 Jul 2018, 19:25

How make this button effect ?

Post by eguana » 04 Jul 2018, 20:03

I have 6 buttons.
buttons.png
buttons.png (4.06 KiB) Viewed 2316 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 2316 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 2316 times

User avatar
Joe Styles
Posts: 82
Joined: 19 Jan 2012, 12:10
Location: UK
Contact:

Re: How make this button effect ?

Post by Joe Styles » 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
Attachments
ButtonsExample.vzs
(24.96 KiB) Downloaded 193 times
Joe Styles
Kinetic Pixel

User avatar
Dennis
Posts: 384
Joined: 08 Jun 2015, 11:29

Re: How make this button effect ?

Post by Dennis » 05 Jul 2018, 10:06

or enjoy this...
Button_Logic_2932.vza
(22.09 KiB) Downloaded 210 times

regArts
Dee

:ugeek:

eguana
Posts: 5
Joined: 04 Jul 2018, 19:25

Re: How make this button effect ?

Post by eguana » 05 Jul 2018, 10:47

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.

Post Reply