AFAIK you can set animation speed for current animation, but for each frame (relative speed from one frame to another) could only be set via animation tab in editor. But you can use something like "if sprite1 in water(for ex.) set animation frame to sprite2.animframe" and sprite2's (could be invisible dummy with only animation speed defined) frame speed will be transferred to your sprite. Or just use multiple animations.