....this kind of issues could be avoided using a rectangular, invisible, fixed size object that has the behavior platform and pinning the player sprite animations on it.
...as recommended on Page 4 of Ashley's own How to make a Platform game tutorial:
[quote:3pt05ubd]The Platform behavior can take care of the complexities of platform movement for us. However, there's one important tip for using it: the behavior should be applied to an invisible rectangle object, and the player positioned on top. The Platform behavior works much better if the object with the behavior doesn't animate, since changing animation frame can leave the object partly sticking in to a wall which can confuse the Platform behavior. Also, it avoids silly collision situations like your player hanging off a ledge by their nose or something they're holding.