When you press certain buttons in my game, the tilemap is flipped horizontally or vertically (however the player, enemies and objects remain the same).
Which option is better?
1 - Flip the entire Node2D (using scale -1 and position 1920, 1080), activate the sprites flip_h
, flip_v
or both properties and inmediately move them down until they get to the floor or original x (i've no idea how to make it work horizontally...).
2 - Make different tilemaps for each situation, disable and activate them and move the entities until the nearest free space is reached (first up or down depending on the center of the player, if not, then right or left).
3 - Flip only the tilemap and move the characters and objects like in the second one (but i don't know how to setup the camera to be always centered). The problem with this one is that scale -1 flips the screen, i.e, over the origin point (this also could be done in the second one).
Or
4 - Do the third one but lowering the flipped tilemap (using position (1920, 1080) ) (this too i don't know how to do it because the non-flipped things coordinates doesn't fit with the tilemap ones).