First,we will draw normal button and button pushed frame on a sprite.
Do Not Forget To Put The Animation Speed To Zero.
Normal button frame(frame 0):
Pushed button frame(frame 1):
Now, we insert the touch input object by insert an object option.
And now we write this event.
This waits a bit before the next action.You can adjust the time wait.
This tutorial is more like touch screen's but its applicable for mouse input too by changing condition.