How can I make an object's animation only play when that object is moving?
I do not need it to play on mouse press, only when's it's moving.
Well, make a Mouse sensor, and controller and action actuator and connect them together. Set the mouse sensor to what you need(for example, left button with true level triggering) and action actuator to your action! So simple!;)