# Tonypa tile based enemy

**URL:** <https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691>\
**Category:** Uncategorized\
**Created:** [June 9, 2008, 7:35am UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691 "2008-06-09T07:35:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![youngtrill](https://avatars.discourse-cdn.com/v4/letter/y/6bbea6/32.png) [@youngtrill](https://forum.kirupa.com/u/youngtrill)\
**Post date:** [June 9, 2008, 7:35am UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/1 "2008-06-09T07:35:09Z")

</div>

i need some help  
but it doesnt play the animation…

making my enemy smarter  
right now if it steps on my square i set it up so that everything isnt unloaded like in his tutorials but the enemy goes to its attack frame

id like it so that if i am within 10 tiles of it will move to me and play its attack animation

all i need help with is the within 10 tiles and makin it move towards me

how would i do that

im using tonypas tile engine

if u type tony pa in ur website bar it will go to his site

---

<div class="post-metadata">

**Author:** ![rahul\_7star](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@rahul\_7star](https://forum.kirupa.com/u/rahul_7star)\
**Post date:** [June 9, 2008, 8:04am UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/2 "2008-06-09T08:04:17Z")

</div>

chk your mail and revrt back

[quote=youngtrill;2339211]i need some help  
but it doesnt play the animation…

making my enemy smarter  
right now if it steps on my square i set it up so that everything isnt unloaded like in his tutorials but the enemy goes to its attack frame

id like it so that if i am within 10 tiles of it will move to me and play its attack animation

all i need help with is the within 10 tiles and makin it move towards me

how would i do that

im using tonypas tile engine

if u type tony pa in ur website bar it will go to his site[/quote]

---

<div class="post-metadata">

**Author:** ![youngtrill](https://avatars.discourse-cdn.com/v4/letter/y/6bbea6/32.png) [@youngtrill](https://forum.kirupa.com/u/youngtrill)\
**Post date:** [June 9, 2008, 8:22am UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/3 "2008-06-09T08:22:55Z")

</div>

anyone?  
like could someone update his function for a bullet  
into a function for swinging a sword? please

---

<div class="post-metadata">

**Author:** ![youngtrill](https://avatars.discourse-cdn.com/v4/letter/y/6bbea6/32.png) [@youngtrill](https://forum.kirupa.com/u/youngtrill)\
**Post date:** [June 9, 2008, 2:40pm UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/4 "2008-06-09T14:40:59Z")

</div>

can someone take a crack at this? considering it would be useful to many ppl out there cause im sure alot of ppl want to remake zelda or sumn dumb instead of there own game

but im doing my own game  
its native american style too

which ive seen none of ☹

so help would be great 🙂

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 9, 2008, 2:59pm UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/5 "2008-06-09T14:59:33Z")

</div>

can someone code the game for me please… oh and do the washing up too

sorry couldn’t resist

I don’t see how you can’t figure out it, or even why you would use a shoot command for a sword

anyway… good luck

---

<div class="post-metadata">

**Author:** ![youngtrill](https://avatars.discourse-cdn.com/v4/letter/y/6bbea6/32.png) [@youngtrill](https://forum.kirupa.com/u/youngtrill)\
**Post date:** [June 10, 2008, 9:11pm UTC](https://forum.kirupa.com/t/tonypa-tile-based-enemy/262691/6 "2008-06-10T21:11:38Z")

</div>

im not using a shoot command for a sword i have it set to where if i press a my char attacks and if i press d he kicks

but i can figure out how to make my enemy react to this im stuck in a loophole
