How I do a Boss like megaman's enemies

Hi everybody. You are excellent people :smiley:

I’m asking about to make a enemy like the clasic megama´s enemy,who can shoot some powers and attack with some phisical atack when they want, and pursue the hero.

How I can make something like that?

Thank you for readme and answer me :heart: