In the video provided below, if you move your camera, it has to wait a second before following the player again. I don’t want that, so does anyone know how to remove that?
Cheers!
In the video provided below, if you move your camera, it has to wait a second before following the player again. I don’t want that, so does anyone know how to remove that?
Cheers!
Hi,
In order to modify the behavior of the default follow camera, you will have to fork the PlayerModule
by making a clone of it and parenting it to StarterPlayerScripts. Then, you will be able to slightly change the code and overwrite the default module to achieve the expected outcome.
First, playtest the game.
Navigate to Players > YourPlayerName > PlayerScripts and copy the PlayerModule
.
Once you have copied the module, end the playtest.
Paste the PlayerModule
in StarterPlayer > StarterPlayerScripts
Expand the module and locate the ClassicCamera
module.
Open the module and set the variable, located on line 17, TIME_BEFORE_AUTO_ROTATE
to 0.
Now, when you playtest the game, the default module will be overwritten and the camera will follow the player immediately with no delay.
Happy scripting!