well if it's a platformer all you need is ai that moves left and right (paces) until the character is spotted by it and then it walks up to him and attacks, at least that's what it looks like


- aka Manslayer101