You can add a second camera and use “camera.make_current()”. I still dont quite understand what exact effect you want to have
Could you send a video of what is happening so we can better help fix it?
When the player falls off the level it looks like he is falling back onto it like there is another copy of the level under the first one, but I would like to use teleporting
Sure, i second.
Youre confusing me. In one post you want to fall, in the next one you want to teleport
I would like for when the player falls off the level/map it looks like he is falling back onto the level, like a infinite loop
To make that happen I want the player to fall of the level and teleport to the top of it seemlessly
okay then i propose to have a camera at the beginning of the level thats stationary and when the player dies you call make_current() on this camera. and as soon as the player lands you call make_current() on the player camera
It there a way to teleport the player and the camera at the same time?
ehm sure, what do you have in mind?
calculate the distance between the player and the camera
ex: var dis = camera.global_position - player.global_position
then teleport the player
then teleport the camera to the player + the calculated sitance
ex: camera.global_position = player.global_position + dis
This Worked perfectly, Thanks
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.