When you press certain buttons in my game, the tilemap is flipped horizontally or vertically (however the player and maybe enemies and objects remain the same).
I tried this:
#Area2D belongs to the player.
func _on_Area2D_body_entered(body):
if body == $TileMap:
$Player.position.y -= 12 #Starting at that number the character moves.
But it only works to get out of one tile when what i want is to do it until the player it's out of any tile (and also make it replace the default system that sends you to the right or left (unless there's no space up and down) ).