[SOLVED] Collider bug (with video and example)

Hello all,
I have a problem with the collider action.
Sometimes the condition doesn’t work.

You can watch the problem:

Here the code


This is not a bug. What you’re doing wrong is hiding the coin, which makes it invisible but it’s still there. So when you run to the next coin, the player is still colliding with the first hidden coin at the same time. Also the score will still increase when you collide with the hidden coin again because as I said, it’s still there but just hidden.

You need to destroy the coin instead of hiding it, then create the coin after 3 seconds.

there was an error.
Now it works: