Collision is sometimes not detected.

Please read this post for how to post code nicely on the forums: Using code tags properly

You could try using an integer to count how many collisions of ‘obstacle’ you’re inside. Perhaps you exit one before entering the other or something, is what I’m thinking?

Just add on enter and subtract on exit. If you’re adding and your new value >= 2 then it’s game over. You could see if that works.