CSC
Member
1. Third Person Controller;
2. Unity 3.4f1;
3. Description:
In the demo scene, pick up the sword and set the sequence reset delay to 0.5s.
( This situation may happen at any reset delay, for example, it is set to 1.5s, just wait for 1s after the first attack would have the same situaiton)
Try to click the mouse quickly, most of the time the combo performs smoothly, but if you click the mouse some point around the red point, it get stuck.
I think the situation happens because the substate get reset but there is no way around from substate 2 to itself.
Or maybe it's that the transition is set to before the UseCompleteEvent and when you click attack, it has passed the transition point.(Sorry, i don't understand the animation quite well)
4. Possible solution:
This situation happens only in the first attack, so set the same animation state which has exit time at the end of animation and after the UseComplete Event, Most of the time it won't be active, but if something happens similar to this situation, it has someway to go to, and can exit Complete Use Event through the additional animation.
Set the addtional animation transition back to the original animation at start, so next combo can be performed. And the exit condition of the additional animation is just the same as the original one.
Sorry about poor English, I tried to explain as my best.
2. Unity 3.4f1;
3. Description:
In the demo scene, pick up the sword and set the sequence reset delay to 0.5s.
( This situation may happen at any reset delay, for example, it is set to 1.5s, just wait for 1s after the first attack would have the same situaiton)
Try to click the mouse quickly, most of the time the combo performs smoothly, but if you click the mouse some point around the red point, it get stuck.
I think the situation happens because the substate get reset but there is no way around from substate 2 to itself.
Or maybe it's that the transition is set to before the UseCompleteEvent and when you click attack, it has passed the transition point.(Sorry, i don't understand the animation quite well)
4. Possible solution:
This situation happens only in the first attack, so set the same animation state which has exit time at the end of animation and after the UseComplete Event, Most of the time it won't be active, but if something happens similar to this situation, it has someway to go to, and can exit Complete Use Event through the additional animation.
Set the addtional animation transition back to the original animation at start, so next combo can be performed. And the exit condition of the additional animation is just the same as the original one.
Sorry about poor English, I tried to explain as my best.
Attachments
Last edited: