Behavior of Okey button

Hello guys.


I just want to create a Sprite_button on my scene map. And bind that function (Okey Trigger) to my sprite.


My problem is i don't know what is the function should i bind to my sprite. Somebody knows what is that function or code?



Okey Trigger is Like the behavior of pressing the key Z or Space bar. Instead of pressing Z or SpaceBar, my sprite will do that stuff.


Thank you in advance 🙂

Original thread: https://forums.rpgmakerweb.com/threads/behavior-of-okey-button.72371/