I am working on a platform game in 2D. My player consists of a parent object with various children attached, e.g. head. arms, body etc…
I have a basic script that causes all of the arms and legs to rotate in a certain way when I am moving slowly, and to rotate faster when I am moving quickly (and not airborne).
So far, so good. Everything was working fine.
I then added ‘punch’ and ‘kick’ animations. All these do is instantly transform some of the child objects (e.g. ‘kick’ rotates one of the legs).
I have noticed that my original ‘moving’ animation now only works for the child objects that are NOT affected by the new animations, EVEN WHEN THE NEW ANIMATIONS ARE NOT PLAYING.
It also seems to be specifically linked to ROTATING the game objects. If I create an animation that just translates one of the objects, the original ‘moving’ and ‘running’ animations work fine for that object.
What do I do?