I have been banging my head against this problem I've been having with an example file. Basically, what I did was create grid-based movement but the character sprite for some reason cannot be within one unit of a non-passable terrain (passable and non-passable terrain is determined by a boolean instance variable).
https://drive.google.com/file/d/0Bx3kU1 ... sp=sharing
Yay, finally someone providing a .capx when posting an issue!
You need to reduce the collision polygon's size of the non-passable terrain sprites by 1 pixel on each edge.
(from 16x16 to 14x14)
That'll do the job.
Apparently, C2 triggers an overlap when two objects collide, i.e. sharing the same coordinates on one edge.
Develop games in your browser. Powerful, performant & highly capable.
That did the trick! Thanks for the help!