The version I’m using is 7.4.
Since there are so many Pressed events, I want to play a piece of music after each pressed event, but it’s too hard to add them one by one,
Is there a unified interface to add a piece of code directly to it?
You can cause any pressed event to play a piece of music.
I am confused. Do you mean that there are many objects that can be pressed? In that case, use the same event handler function on all of them.
Each pressed object is a different function, and the events performed are different, but I want to add the sound of clicking on the screen on top of this, and the music played by clicking on the screen is the same.
Call a common function inside their event handlers, then, and put the common logic in that function.
1 Like