how do I make my character go through an object?

I have a game resembling pacman and i need the ghosts to be able to go through the coins but not the walls, I also need to make sure pacman can collide with the coins how can i do this?

Make the coins a non-solid object with collisions enabled