I am currently working on a movement handler (crouching, sprinting, etc.) and I’m using the animate script to change the animations. Is it a bad practice to do that in this case?
I was wondering because I’ve experienced the following issues:
_The animations do not load in if you crouch/uncrouch quickly
_The animations do not smoothly transition the first time a player crouches/uncrouched, it was perfectly fine on all other occasions though
Have you done something like this? Also I see that your script have 2 CrouchWalk animations but in different Animate variables, is that what is giving you these problems?
No, I’m simply reusing both animations. I could do something like you have shown but my and your version are practically the same. I guess I’ll just have to add a cooldown and play all three animations during the loading screen.
Yeah you could do the cooldown, let me know if it giving you the same problem so I can at least see what I causing the problem because I never encountered this problem before.
Ah, I’m an idiot. My script sends an API request each time the animation changes, yours is using instancing, so it only sends a request once.
So yes, it is a bad practice.