|
I've got a script that hides my mouse cursor until the pause menu is brought up. My problem is that once the player brings up the pause menu, then hits the "Resume" button, the cursor does not go away again. I assume there would be some command to say "if gui button "resume", Screen.showCursor = false;" However, I am not an experienced progammer. Any suggestions would be greatly appreciated. Here's the code I currently have:
(comments are locked)
|
|
I figured it out. Just needed to add the following line to my PauseMenuScript under the resume button command. Screen.showCursor = false Also had to modify a few other scripts to prevent the audio from playing during pause. Simple as that!
(comments are locked)
|

Try a built version of that level. I've noticed that the editor doesn't like taking the mouse back after you first release it.