"One way" collisions / preCollision event

Hi,

I’m wondering if anyone can explain how can I make “one sided” collision objects, for example, like how the platforms in DoodleJump operate.

The documentation mentions:

“preCollision”: an event type that fires right before the objects start to interact. Depending on your game logic, you may wish to detect this event and conditionally override the collision. For example, in a platform game, you may wish to construct “one-sided” platforms that the character can jump vertically through, but only in one direction. If you do not implement a “preCollision” listener, this event will not fire.
So, I assume I need to listen for the “preCollision” event and then decide whether to override the collision, the issue being is that I don’t know how to “cancel” the collision and can’t find any docs on it.

Thanks in advance for your help,
Chris [import]uid: 11422 topic_id: 3769 reply_id: 303769[/import]

Sorry for the double post, but looks like another member had the same problem but didn’t get a reply:

http://developer.anscamobile.com/forum/2010/11/16/canceling-collision-precollision-event-handler

c’mon, somebody must know if it’s possible :slight_smile: [import]uid: 11422 topic_id: 3769 reply_id: 11458[/import]