After trying some stuff I've hit a problem. I can successfully test if a single enemy is walking and animate accordingly but with multiple enemies it doesn't work.
The enemies are made of a base 'body' where a hair, top and pants sprite are pinned (multiple sprites for different colours and styles of enemies.) The body is controlled by the platform behaviour while the clothes and hair are pinned to the body. I can't just test the x velocity of the body for clothes and hair as it just takes it from the first spawned enemy. (e.g. If the first enemy is at a wall not moving another enemy which is moving will play a still animation for its clothes and hair.)
Is there a way to link the speed of one sprites to its own components, or is there an easier way to go about this. (btw the body and its clothes and hair are in a container together.)