How to Schedule action for a button?

How can I add a button to perform an action in a platform game and play an animation independent of the player’s walk?

This can help you.
wiki.compilgames.net/doku.php