For my basic "obstacle" object, I have sprites which have a width and height which is larger than those of the textures they are using. In order fix this, I use
texture.setRepeated(true). However I want to use a tileset such as
this one when I have multiple textures, using the
sprite.setTextureRect() function in order to select the right texture. At this point, I can no longer have a repeating texture. How can I fix this issue, such that I can having a repeating texture for a sprite, whilst using a tileset and the
setTextureRect() function SFML provides?