So, I have a reflective surface in my 2D side-scrolling game. I want the player's reflection to show up in the surface. It will be on the wall, so I want it to be slightly in front of the player so that the player's sprite shouldn't cover its reflection. What is the best way to do this?
My idea is to create a duplicate sprite for the player character and set its animation to be the same as the player and its position to be slightly ahead of the player. I will somehow mask the sprite so that it only shows up in the mirror. But I'm sure there's a better way to do this.