How to make a platformer beat em up

Did you check this? How can I make the main character duck?