I am new in cocos2d-x
I successfully created tmx and import it in my project also created layers
I created physics world and set gravity also apply on my sprite.
collision between two physics body simply done. But my problem is when I am going to detect collision between my sprite on which gravity applied it doesn’t detect tmx layer. means when my sprite free down towards earth if it detect any tmx layer support is should stopped and stand on it.
what should I do?
as above image my sprite should stand on rock but by the presence of gravity it is falling down how can I stand my sprite on rock?