I have a 32 buttons in a scene. I don't want to create 32 different timelines or a separate function for each button.
On each button, I would like to do the following:
Starting color is black and opacity is at 100%.
First click = change background color (red) & opacity to 70%
Second click = change background color (green) & keep opacity to 70%
Third click = change background color and opacity back to original setting.
Can this be done?
Please bear in mind that I am quite a novice at this but very determined to learn.
Thank you, Hans. I'm quite a novice at javascript, so I'm ignorant of the things that are happening in this solution. So do I need an event listener and/or a click counter?
modifying your opening request to be a very different request than the initial one will mislead other visitors coming to the thread as they won't understand the answers. This procedure would probably also not lead to some more attention, cause this update is not necessarily visual in the forums hierarchy.
I'd advise to post the new/modified request in a new reply and optinally change the first post to its initial state ...