hello everyone, i have a simple question how can i achieve this effect on the video i attached ?
i would want to achieve the effect of the video of when the player get out of the screen it get teleported on the other side like an arcade game thank you
Two actors. Have it so on collision, it casts to the other actor and gets the location of a child actor. Break that vector, and only use either the X or Y not sure which. Then get the Z of the player character by casting to it, and set the location of the character to that location. This way, if the level moves at some point, you can still teleport. You could also just teleport the player a certain distance ± x or y, without casting.
Two actors. Have it so on collision, it casts to the other actor and gets the location of a child actor. Break that vector, and only use either the X or Y not sure which. Then get the Z of the player character by casting to it, and set the location of the character to that location. This way, if the level moves at some point, you can still teleport. You could also just teleport the player a certain distance ± x or y, without casting.