Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

[求助]TMXObjectGroup 使用崩潰

$
0
0

@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

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



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