Changed LGSprite.direction to xScale and yScale