I figured it out, but why does rotating the sprites mess it up? Maybe I'll just use more sprites.