在tileMap地图上加了一个图层,在该图层上增加了collision属性用于检测碰撞,但是当人物移动碰到的时候,就出现错误,提示如下:
Assert failed: The value type isn’t Type::MAP
Assertion failed!
Program: …ect\MapStory\proj.win32\Debug.win32\libcocos2d.dll
File: …\base\CCValue.cpp
Line: 744
Expression: _type == Type::MAP
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
不知道是什么原因。