# Ai

**URL:** <https://forum.kirupa.com/t/ai/220738>\
**Category:** Uncategorized\
**Created:** [March 28, 2007, 8:13pm UTC](https://forum.kirupa.com/t/ai/220738 "2007-03-28T20:13:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsmario](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@itsmario](https://forum.kirupa.com/u/itsmario)\
**Post date:** [March 28, 2007, 8:13pm UTC](https://forum.kirupa.com/t/ai/220738/1 "2007-03-28T20:13:45Z")

</div>

How do I make a character (instance ‘enemy’) attack when the ‘char’ gets close, and how do I make him do a different attack when he is far?

Each attack is on a different frame in the enemy MC.

close attack is “kick”  
far attack is “throw”
