I've tried asking this question before but I'm guessing I'm asking the wrong way.
I have an enemy that moves left and right, when he hits a boundary the enemy moves the opposite way. When the player is in line of sight of enemy the enemy will chase the player as long as he is in line of sight. When the enemy is close enough to the player the enemy attacks the player. (all of this is functioning properly) The problem I am having is when the enemy attacks, it attacks one time and stay in that last frame. I want the enemy to keep attacking until the player is out of attack range. I chose the loop option on the animation but the animation will not loop.
In order to run the capx you will have to have the rex_platform_moveto plugin. http://c2rexplugins.weebly.com/rex_platform_moveto.html
Here is a link to capx: https://drive.google.com/open?id=0B3ivn ... authuser=0
If anyone can offer any type of support I'll try it I've been working on the one thing for a long time and I think can't get it to work. I guess people don't have this issue much because I can't find any threads about it and the threads I do find don't work for me.
Any help would be greatly appreciated.