Search Unity

Need help: Sprite2D is flickering on vertical movement

Discussion in '2D' started by Artem-Koval, Jul 20, 2014.

  1. Artem-Koval

    Artem-Koval

    Joined:
    Mar 18, 2011
    Posts:
    6
    Hi!

    Please help.

    Situation:

    As you can see in this video sprite of horizontally moving enemies is flickering: https://dl.dropboxusercontent.com/u/19764309/Caelum 2014-07-20 16-09-40-92.avi

    Flickering is not that visible on video - but, for example, bottom line of green center part is jumping up and down and so on.

    Here is screenshots of prefab and sprite setup:

    prefab.png

    sprite.png

    What I tried (no help):

    1. Turn off dynamic batching
    2. Add animation of 2 same sprites
    3. Set pixel to units to 50, 100 and scale down prefab accordingly
    4. Resize sprite to 84 by 84 (which is roufly 248 / 3 when pixel to units is 300) in photoshop/paint.net. It stops flickering but sprite quality is awful - edges are blurry, a lot of lines are gone and so on.
    5. Turn off sprite built-in compression.
    6. Use different shaders.

    So far - nothing.

    Any advice is really welcome.

    Thanks, Artem.