Search Unity

syncing multiple sprite animations inside one game object

Discussion in 'Animation' started by BillyMFT, Aug 5, 2016.

  1. BillyMFT

    BillyMFT

    Joined:
    Mar 14, 2013
    Posts:
    178
    Hi all,

    Not sure if this is a bug or not. I'm trying to animate multiple parts of a character and they are going out of sync. I made an empty game object with an animator component. Inside that I put 3 game objects, each with a sprite renderer. Then I created an animation clip that looks like this.

    https://www.dropbox.com/s/v42ofbo8oo5u38g/Screenshot 2016-08-05 17.12.16.png?dl=0

    2 of the objects have a different sprite for each frame but they didn't line up so I'm manually moving one object each frame to align them. I set the curves of each position keyframe to constant and when I move the timeline in the Animation panel they line up fine but when I play the scene they don't quite line up.

    For example, it should look like this.

    https://www.dropbox.com/s/69plnksegjw4m8v/Screenshot 2016-08-05 17.19.20.png?dl=0

    But it looks like this

    https://www.dropbox.com/s/o1r2nu4p9mlbjhj/Screenshot 2016-08-05 17.20.15.png?dl=0

    I just don't understand why they would go out of sync when they are on the same timeline.

    Any tips?

    Thanks
     
  2. BillyMFT

    BillyMFT

    Joined:
    Mar 14, 2013
    Posts:
    178
    Bumping this. Hoping someone has some suggestions. Thanks
     
  3. BillyMFT

    BillyMFT

    Joined:
    Mar 14, 2013
    Posts:
    178
    I ended up adding an event on every frame of the animation and moving the object with code. crappy workaround but I had wasted enough time on it already...