It sounds like you also have collision shapes applied to the walls. In that case you can check to see which objects are involved in the collision. These are passed with the event object to the callback function as the attributes obj1 (node that generated the event) and obj2 (node it collided with). If obj2 is the door then you can animate it opening, otherwise you can ignore the collision.
|