So I want to make the most rudimentary way for to player to teleport or rather blink in the Godot. So far my idea is to add child node (i tried with the area) to my player that is set in front of the player as seen in the image.
And this is the code that I tried to use to test even more basic type of teleportation:
This code doesn't work even slightly but it doesn't cause me any errors either (I did define player_postion as
So what would be the solution to teleport my player to area I put on a simple button press? For now it doesn't need some collision check (I will try to implement that on my own).