Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17078

Tiledmap mapsize and tilesize are empty/don't exist

$
0
0

@lyinch wrote:

Hey, when I create a tilemap in my project the tilesize and mapsize variables are empty. I first got an EXC_BAD_ACCESS while using _tileMap->getMapSize().width and I then set a few breakpoints and looked at the values of this->_tileMap->_mapSize and saw that they are empty or don't exist.

I create my map in the init function like this:
auto _tileMap = TMXTiledMap::create("background.tmx");
this->addChild(_tileMap, 0);

The map loads and displays successfully.

I have version cocos2d-x-3.10.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>