If you have the animations for that, it's possible..
If the character is made out of parts (animated with spriter for example) this would make the eventing easier..
It's all possible..
Seeing that you are new here, it might be better to start with something easier to code, but like I said, it's possible..