(Solved) Please, help me with chest problem

Hello,

I’ve been learning to work in Gdevelop for a few days now. I ran into a problem with the chest.

See picture.

It actually works, but every time I press enter, the chest opening sound starts again and the reward pops up again. How to stop it?

Thank you for any advice and sorry for my bad English :-).

Hi,
you could use a boolean object-variable for your chest that tracks whether your character was already in collision with it.
Something like:

Perfect, it works. Thank you! :slight_smile:

1 Like