|
My custom mouse look script is meant to lock the cursor in the center on the screen but it does not work for some reason. if you can also tell me how to make the script run in delta time that would be awesome to as this would help me with another problem with the pause menu. thanks again...
(comments are locked)
|
|
As is said here, it isn't possible to set the cursor position without external .dlls. Screen.lockCursor doesn't automatically set the position of the cursor to the centre of the screen, it only locks the position of the mouse at the current mouse position. Also, Screen.lockCursor is already a boolean. There is no need to redeclare it as a boolean. Hope that helps, Klep Thanks for the Reply, don't suppose you know how to make the script run in deltatime so when i do time.Deltatime =0; the script stops as well as the whole game. Currently the whole game stops correctly except for the main camera which can still move.
Apr 14 '12 at 12:57 PM
phonepl8
I'm not exactly sure what you mean ... Time.deltaTime is a measure in milliseconds of how long it took to render the previous frame ... are you talking about Time.timeScale? Setting this to 0 will stop the game. If you want to stop the main camera from moving, try this:
Apr 15 '12 at 07:45 AM
Kleptomaniac
(comments are locked)
|
|
You can use this script to lock and hide your cursor Lock:
Hide:
(comments are locked)
|
