AI(artificial intelligence)

hi, I’m making a super smash bros game and need help with artificial intelligence and i can make a character move and attack but the only problems i need is the enemy. i want to know how to make him move, attack, jump and get hurt, mainly like on this games enemy’s: http://www.newgrounds.com/portal/view/333995 and i also want to know how to make my character jump if you could teach me or tell me how that would be great