So that works but it causes an issue where when the character moves back on screen it's behind the background element I have set up. I tried changing the z-index of the character to see if there was an issue with that but it resolved nothing.
So is there a way to fix this or will I need to use two versions of the character?