how can I make my character reflect in a mirror?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MegamanXfangamer

I want my character to be reflected in a mirror that I have and I do not know how to do it, I also can not find any tutorial for that, Please I ask for your HELP

There are plenty of results if you Google “Godot reflection tutorial”

japhib | 2022-04-26 23:13

:bust_in_silhouette: Reply From: SnapCracklins

This is one of those moments where you get creative as a programmer. One easy way, i feel, is to make a background with transparency holes and then make a player object that only responds to movement, change its layer below the background, player and other objects then just have it respond to the same movement code, just put it in a different position so it hits the mirror at the same time as the player. Heck, you could even just skip having a collision box too (because it could cause errors unless you choose to disable it, plus its pointless in this application.)