Search Unity

punching animation is glitched in the engine, but looks normal in the gif itself

Discussion in 'Animation' started by Melodee, Mar 9, 2019.

  1. Melodee

    Melodee

    Joined:
    Mar 16, 2016
    Posts:
    56
    my punching animation is glitched in the engine, but looks normal in the gif itself.
    what is this caused by and how to fix this?

    ENGINE:
    https://imgur.com/a/zpr49AO
    GIF:
    up_punch_anim.gif
     
  2. Wanela

    Wanela

    Joined:
    Apr 25, 2018
    Posts:
    5
    Are you by any chance using Aseprite or Pyxel to create this animation?
     
  3. Melodee

    Melodee

    Joined:
    Mar 16, 2016
    Posts:
    56
    yes, i am using aseprite.
     
  4. Wanela

    Wanela

    Joined:
    Apr 25, 2018
    Posts:
    5
    Try using this custom animation importer. Here's a tutorial if you're having trouble. I'm not a pro in any way, I was trying to import my animation into unity for the first time yesterday and also having some weird glithes. If this doesnt work, try exporting in different ways (as a spritesheet, as separete png's etc.).
    The importer did solve the glitch that I was having, but it introduced some new ones. Strangely enough, saving the aseprite file in my project directory and exporting as separate png's by pressing shift+alt+ctrl+s for whatever reason solved it, I'd suggest trying the stuff above first though. Hope this helps or anyone who actually knows what's going on comes along.
     
  5. Wanela

    Wanela

    Joined:
    Apr 25, 2018
    Posts:
    5
    Also, maybe try to update unity to the latest version