# Enemies run at you and attack

**URL:** <https://forum.kirupa.com/t/enemies-run-at-you-and-attack/202490>\
**Category:** programming\
**Created:** [October 2, 2006, 2:55am UTC](https://forum.kirupa.com/t/enemies-run-at-you-and-attack/202490 "2006-10-02T02:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_The\_CRaZeD](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@Leo\_The\_CRaZeD](https://forum.kirupa.com/u/Leo_The_CRaZeD)\
**Post date:** [October 2, 2006, 2:55am UTC](https://forum.kirupa.com/t/enemies-run-at-you-and-attack/202490/1 "2006-10-02T02:55:00Z")

</div>

I have a game that is ALMOST fully finished. I have everything els done, except for the enemy AI. Let’s say I have an MC called “enemy”, and I have the main character MC, and the enemy has to chase the person in the direction they are going (It’s a side scroller) and attack with the “Attack” animation. How do I do this? Thanks!
