i have several buttons and i want the buttons to have several different states without having to' write' same code over again
my buttons are sprites btw
*enabled(btn sprite frame 1)/ disabled(sprite to frame 0)
*pressed/clicked(button sprite switches to to frame 2 for a few miliseconds)
is there any way to do this without having to 'write a bunch of code for each button?
i would like to be able to set btn1.disabled , and the software should automatically set the sprite to frame 0since im gonna have many buttons , i want to avoid writing this for every single button,is there a button plugin, that can help me out?