Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jujumumu |
My camera is following my player but when my player reaches the end of the world I want the camera to stay still while the player just walks to the end. How can I do this?
That depends on how you normally move your camera. Do you move it by script (I.e. in the _process() func) or is it simply a child node of the player?
When you move it by script then you can just add & set a conditional variable to stop the normal processing. When the camera is a child of the player you could save its global_transform, remove it from the player, add it to the scene and restore its global transform. Or generally switch it to script.
wombatstampede | 2019-11-13 07:39