spritesx, spritesy, spritesz are not global anymore