tileMap地图碰撞检测

在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
不知道是什么原因。

啊,问题解决了,我是给图层加了属性,没有给图块加属性,加了之后就好了。

怎么解决的啊?求指导,谢谢!