Enemies who shoot and follow

Hi!

I’m trying to creat enemies in my platform game who will follow and shoot on the main character. Does anybody of you know a sourcefile for this, so I dont have to invent the wheel again? Its’s for an artbased platform game. So the enemy should also be able to change platform (jump on a platform again, when he has jumped off)

Or maybe you could give me some hints on how to do this… cause it seems to me that its pretty difficult.

Grtz