I have a bunch of tiles stored in a single label (like a spritesheet). I'm using loops and ID numbers to identify and retrieve sprite information for each tile from the label, like so:
# ve is the ID of the tile that I want i := tileset vc := sprite_size vd := 0 loop if vd < ve begin i += vc vd += 1 again end
I was just wondering if there might be a more efficient solution that I could be using. Especially if the data I want is further down the list.