How to have run animation without editing Animate script?

I want to find the best way to change the walk animation of my character to a run animation while they are running, without modifying the animate script. The animate script by default only uses one state of “Running” and one animation, the walk animation. But it does have a config for a run animation, so it wouldn’t be too difficult to make some slight changes. But usually people say to avoid forking the default scripts because they get updated.

I’ve just tried making it so that a script changes the animationId of the walk animation when the character is running, but that doesn’t work because the animation won’t reconfigure during a state, so if the character is already walking it can’t force the animation to change.

So, are the updates scarce enough that it would be reasonable to just edit the Animate script, or is there another way for me to play a unique run animation while my character is running?

2 Likes

usually jst playing a looped run animation with a higher than core works

I ended up just modifying the animate script, but yes I think you could also just play an overriding animation whenever the walkspeed changes, and that would also not require any network usage

1 Like