Basically what I've done is a platform game in which the player has an ability to temporarily phase out of the physical world to get past (i.e move through) certain obstacles. This is done by toggling off the Physics collision with these obstacles for a short while. Currently the game is set so that the player dies when he collides with one of these objects, mainly to make it clear that a collision happened.
It works well some times but whenever I "phase" when I'm already close to an object the phasing doesn't work properly. The player fades out and doesn't die when he collides with the object, but he can't move through them either for some reason. Also when the phasing ends when the player is in the middle of an object he is sort of stuck there instead of dying. In the game he's supposed to die if that happens as timed jumps are a big part of the gameplay.
If anyone of you have any idea as to how I can solve it I'd be very grateful indeed.
Here is the project, just be warned: there is a loud Wilhelm scream played when the player dies so don't play it with the volume turned up. ;)