@kaidenpoon 写道:
TMXObjectGroup* objGroup = map->getObjectGroup("object");
ValueMap playerPointMap = objGroup->objectNamed("PlayerPoint");
float playerX = playerPointMap.at("X").asFloat();
float playerY = playerPointMap.at("Y").asFloat();
mPlayer->setPosition(Point(playerX, playerY));上面代码不知道那错了,一运行就崩溃,找了2天没头绪,求助各位大神!!谢谢!
帖子: 1
参与者: 1