Question by
Irfan_suwadi1 · Oct 04, 2016 at 05:11 AM ·
animationanimatortriggeranimator controllerevent handlers
Playing animation without hold the button
Hi,
I am newbie in Unity. Currently, I am having an issue in making rolling character animation when swipe the screen. The rolling animation is playing if I am pressing and hold the button. but if I use swipe it is not playing. I found that the animation is not playing until finished if we don't hold the button. but I don't find any issue in making other animation (example: jump, explode, etc).
Please Advise
Comment
Best Answer
Answer by Irfan_suwadi1 · Oct 04, 2016 at 10:49 AM
Yup I already found it,
detect and store the position of your firs time press button and play the animation. for stopping the animation, I detect the position now minus the stored position bigger than certain distance and don't forget the rolling status.
:D:D:D:D:D