Hello,
Is there a way to stop all movement, for lets say half a second, while an animation play. What I am trying to say is I don’t want my attack animation to play while the character is running, I would like it when I hit a button forward, backward, left, and right movement stops completely, then after the animation is done playing the movement starts again.
Thanks for any input,
Sorry if I am not using the correct terminology.
Yes it can be done. No, no one will probably have the energy to explain it in detail and write the script for you.
One way would be to split up the player actions into states, when you press your attack button you enter the attack state, and stay in the attackstate untill it’s complete, then you return to a idle state that will check for input and activate the movestate that handles movement. If no button is pressed you go back to the idle state, in the idle and run state you check if the player press the attack button and go back to the attack state.
If you don’t know how to do this, do a search for state machine.
Alright thanks,
I searched what you said and I giving it a try.
Sorry, I wanted someone to write the script for me because I would not learn scripting that way.