How do I only make my door open when other objects have been collected?

In my game I want to make it so that you have to collect all the bananas on the level in order to move on to the next level. It works so that if you collect all the bananas the animation of the opening door will play and then you can go through it, but my problem is that even if you don’t collect all the bananas you can still use the door to get to the next level. How do I fix this?

Can you share a link to your game?

Actually never mind Ive figured it out. Sorry for any inconvenience.

I will show you the picture

Banana behavior

Microsoft Edge 7_16_2018 6_32_41 PM

door behavior

Microsoft Edge 7_16_2018 6_38_58 PM

sorry the flitter says “Equal to 3” and the saves says “eats” the mailbox says “eat”

and the enable false means you cannot collide anymore but if is in true than it is able to collide

Number behavior “3” it is supposed to be a 0 because you are add 0 to 3.

if you like an alert place the alert behavior and connect it to “the less then 3” filter “pass”.

then place an animation connected to the “Equal to 3” "pass "

It works I tried it