Multiple animate function instances causing trouble in wind function #1146
Unanswered
tejasnayak25
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally posted by @ke456-png in #1134 (comment)
The above mentioned comment helped me to create a function which lets me add wind to the characters.
It looks like this
The first time I call the function it works and the animation is having no issues.
But the second time I call the same function with false condition it runs multiple animate function instances causing no issues again. The character's outfits are back to position.
But the third time I call it with the true condition it runs three instances of the animate function simultaneously with two true and one false value.
This causes lagging in the animation.
And also the rotation set to the characters body parts are set back to normal.
Can't apply rotation.
I'm passing the condition argument from checkbox.checked value.
How can I stop the multiple instances?
Beta Was this translation helpful? Give feedback.
All reactions