Thread: Running Attack
View Single Post
  #4  
Old 12-18-2011, 04:54 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I think your best bet is to replace the walking gani while the player is attacking, and then set it back to the walking gani when the player is done their attack.

I.e:

PHP Code:
function attack() {
  
replaceani("walk""new_walking_ani");
  
this.scheduleevent(0.5"FixWalkingAni""");
}

function 
onFixWalkingAni() {
  
replaceani("walk""proper_walking_ani");

Your walk check seems unnecessary.
__________________
Quote:
Reply With Quote