am i doing something wrong? or is this just the way it has to be? player has a weapon he swings like bat, i used special functions and hidden inventorys to do this, but when ever i press the attack button it always switches to the left state of the sprite even with retain old state check? i can however hold the right arrow on the keyboard and and press the attack button and it works fine, its just when i intial press it it goes left...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I believe there has to be the same number of frames of animation in the state you are switching from--left / right moving--and switching to--left / right attacking, respectively--for it to work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
am i doing something wrong? or is this just the way it has to be? player has a weapon he swings like bat, i used special functions and hidden inventorys to do this, but when ever i press the attack button it always switches to the left state of the sprite even with retain old state check? i can however hold the right arrow on the keyboard and and press the attack button and it works fine, its just when i intial press it it goes left...
I believe there has to be the same number of frames of animation in the state you are switching from--left / right moving--and switching to--left / right attacking, respectively--for it to work.
yep you were right thank you