I think you might need to explain a little better what this code is doing- and a little more exactly what you want it to do instead- it's a little confusing.
Specifically, why are you vertexcoords'ing stuff you (apparently) just addvertex'ed? I may be missing something obvious, and I have little idea what all your vars represent as well.
Anyway, the math on your tile index uvs is 64/1024 or .0625
Specifically, why are you vertexcoords'ing stuff you (apparently) just addvertex'ed? I may be missing something obvious, and I have little idea what all your vars represent as well.
Anyway, the math on your tile index uvs is 64/1024 or .0625