Here ya go , found 2 shiny examples in the FAQ
An Example
Another Example
Also , Your description is too vague , you say if it was a top-down , a platformer , what would be the enemy's behavior , when will the enemy attacks ... etc.
Next time , if you want some help , please check the FAQ and search the forums ...
Don't take it badly , cheers !