To set a sprite animation you use the action:
Sprite - Set animation speed (in the actions dialog it is in the section "Animation", "Set speed".
Considering a sprite with a platform behavior, you can set said action to:
Sprite.Platform.Speed
Having a look at the sprite manual entry might provide assistance.
I understand how to set the speed of an animation, but I am wondering if it is possible to set the speed of the animation, based off the speed of the sprite when moving. Hope that clarifies. Thanks again!