I should mention Im using physics collision. I added all the objects with collision on layer 1 to a family, and when the player touches an object to disable the collision of that family. But family physics actions do not seem to be working. It was glitching out at first and I realised that it was because of two physics behaviours in the sprites, so I deleted the original ones to have just the family physics behaviour.