by skydereign » Sun Sep 02, 2012 9:11 am
I actually wouldn't recommending using paths for movement. Instead it is usually better to set xvelocity via timers, collisions, or in the draw event. To make an enemy attack (depends on how you are handling movement), you check if the enemy is in attacking range of the player, and change its animation. You'd also want to set an actor variable telling the game the enemy is attacking, which the player can use in a collision event to determine if the collision event was an attack.