Attack Animation
Posted: Sat Oct 01, 2011 2:54 pm
ok i have my stick man using his sword attack and i have an on screen button, i want him so that if you press the button down and even hold it , he won't repeat the animation unless you click the button again. heres my code for the anime of mouse button down
- Code: Select all
if(dir == 0)
{
ChangeAnimation(player,"stickman attack left",NO_CHANGE)
}
if(dir==1)
{
ChangeAnimation(player, "stickman attack right",NO_CHANGE)
}