Teleport player without him noticing
Good day to you all.
I am trying to teleport a player in what seems like quite an unusual way. I want to teleport my player to one corridor to another, the two corridors being an exact replica of each other, but placed in different coordinates of my level.
What I'm trying to do, is teleport the player but I wan't him to be unaware of the teleport. Hence, going through the corridor (which has a trigger to teleport in the middle) should be no different than walking through a normal one.
This is the very reason why both corridors are exact replicas, so the player can't tell the different when they are teleported.
I have tried to use both
Is there a way to achiveve this? I kinda want to do something similar to what the game "Antichamber" does, in that game you get teleported several times to different rooms but you never notice.
Here are some screenshots of the level from the top view: Teleport corridor 1 (notice the trigger green line in the middle)
Teleport corridor 2
When you teleport the character do you take the offset of the player to the center of the trigger volume into account? The player likely never enters the volume in the exact same place so when you teleport him to a mirrored location without that offset a change would be noticeable.
So basically just subtract the players location from the collision volumes location(or the mirror point of your teleport location) save this vector in a variable called Offset. Then when you make your teleport transform subtract the Offset from the location you are going to teleport them to. EDIT: Also if you're teleporting to a mirrored location where you rotate the player π you would ADD the offset opposed to subtract it.
I'm sorry if this is something you already thought of, it just seems like it would be a common oversight in my opinion.
Hmmm, the only idea that comes to mind is to swap characters. While both are controlled at the same time with the same input. Here is some info on this:
Hope it helps
answered Jun 20 '18 at 05:11 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here