Let’s say i have buttons with 3 different functions that will show an image. How can I disable the other two buttons, if i already pressed a button. Let’s say wait for 3 seconds(i’ll destroy the current image) after that you can click another button then loop (click and show)
Are those 3 buttons different objects?
if yes then:
boolean variable “disabled” = false and cursor or touch is on button 1, change the boolean variable “disabled” of button 2 and button 3 to true
and same like this for other button