Edit: simple mistake I looked over, and wasn't thinking. Ignore :)
My code brings up the error:
no match for 'operator*' in 'mapRows * width'
on the code
// get the current tile number
int tileNumber = levelMap[mapRows*width + currentTile];
Declared at:
for (auto& mapRows : levelMap)
for (auto& currentTile : mapRows) //It loops through the rows, then goes through all the tiles in that column.
{
and width at:
bool Map::load(const std::string& tileset, sf::Vector2u tileSize, unsigned int width, unsigned int height)
and levelMap at:
std::vector<std::vector<Tile>> levelMap;
Sorry, just a beginner!