Weird Movement

NerdinaNutshell

  • *
  • Posts: 112
So I recently started working on a new game it had originally used sprite edits but I changed them. However after changing the sprites I noticed something odd. When  I went left it would sometimes push me up a tile and holding right would sometimes push me down (even into tiles).  Releasing the sends the character back where they should be. I doubled triple check that all the frames of each animation are the same size (I even set collision for all animations to the same). With this post I'm including a picture of my script and video showcasing the problem.
Plot Twist... I'm a ghost

squeeb

  • Posts: 1418
Turn on debug draw.. and check collisions

NerdinaNutshell

  • *
  • Posts: 112
I fixed it. Turns out for some reason all the origins on the animations were screwed up (I’m not sure why though). Oh well
Plot Twist... I'm a ghost