Sprite can't collide

Hello , i want my 2 sprite don’t touch each other my sprite move by velocity and stop when touch the obstacle but when i click again the keybard (right or left ) the sprite go through the obstacle inside if him and then return . i don’t want that please help me

https://docs.cocos.com/cocos2d-x/manual/en/physics/collisions.html

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.