Oh, I thought that's what you wanted. The width of your sprites is 64, and you can't make a sprite loop its UVs, but if you made 4 sprites, each with a width of 16, that would fix your problem. By the way, you could say "I MOD 16" instead of "I-16*FLOOR(I/16)".