Search Unity

The player is going up and down through a texture of another object

Discussion in '2D' started by SolaireOffAstora, May 4, 2022.

  1. SolaireOffAstora

    SolaireOffAstora

    Joined:
    Mar 15, 2022
    Posts:
    2
    So I am pretty new to unity. I started 2 days ago and this thing keeps happening and it is driving me crazy.
    It happens in one frame of the player walk animation.
    And then it goes back to normal but when the animation resets is happens again.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,752
    This is likely some mis-interaction of the pivot points of one of your sprites and whatever mechanism you are using to sort your sprites.

    To eliminate that possibility, ensure your pivot points are consistent through all frames of an animation.
     
  3. SolaireOffAstora

    SolaireOffAstora

    Joined:
    Mar 15, 2022
    Posts:
    2
    Well I looked into that but I had the same pivot point on every frame