I’m trying to make my 32-bit tiled map become more "zoomed" in. However, i experience an error that i cant resolve. Firstly, i followed this post on how to render the tiles larger. This is my code (close to identical to the code in the other post): class TiledMap: def __init__(self, filename): tm = pytmx.load_pygame(filename, […]
- Tags (64, (x * 64, 64)) TypeError: argument 1 must be pygame.Surface, filename): tm = pytmx.load_pygame(filename, gid in layer: tile = ti(gid) tile = pg.transform.scale(tile, i experience an error that i cant resolve. Firstly, i followed this post on how to render the tiles larger. This is my code (close to identical to the code in the other post): class TiledMap:, I'm trying to make my 32-bit tiled map become more "zoomed" in. However, not None I'm suspecting that some tile that its trying to render simply is empty. I've tried a seperate smaller map but the issue persists., pixelalpha=True) self.width = tm.width * tm.tilewidth self.height = tm.height * tm.tileheight self.tmxdata, pytmx.TiledTileLayer): for x, self.height)) self.render(temp_surface) return temp_surface The error that is produced is: tile = pg.transform.scale(tile, surface): ti = self.tmxdata.get_tile_image_by_gid for layer in self.tmxdata.visible_layers: if isinstance(layer, y, y * 64)) def make_map(self): temp_surface = pg.Surface((self.width