[Solved] How to access other button instances by ID to change their object variables?

What I want is this:
If the toggle button with id = “button1” is clicked, how can I access the buttons with id = “button2”, “button3”, and “button4” to change their object variables?
All buttons are instances of the same object and use object variables.
Here is my current event:

1 Like

Sorry, i tweak my solution for ensuring it works perfectly, here’s my solution

Also nice event sheet

2 Likes

Hung Thai was quicker.

The first click selects just 1 button. So, you need to pick all of the button before the other buttons are picked.

If you’re making something that only allows 1 button to be selected at a time then this would work. I used a regular sprite with the button state behavior so I could easily change the animations.

3 Likes