hi.
1st make a single capx file ,not a caproj file.
2nd You can create this type of ai by using a dummy sprite to detect your player sprite.So ,when the player sprite overlaps the dummy sprite ,you can set your enemy sprite to move towards your player sprite.