Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | lukamrko |
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 var player_position=Position3D
)
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).
Before I suggest anything, do you mean to say
“You want your player to teleport to the the position where your child node named (Teleport) is?”
Xian | 2019-11-05 03:13