Fixed mouse in browser game
Wildlife Wasteland » Devlog
I fixed the mouse going off of the window for the in-browser game by adding a single line of code:
Cursor.lockState = CursorLockMode.Locked;
You kind of have to click in and click out and click back in the window though...
It was this easy the whole time yet I over complicated it with trying to warp the mouse and stuff 😭💀
Also I allowed users to change mouse sensitivity which is cool :))
Files
Wildlife Wasteland.zip Play in browser
Apr 03, 2024
Get Wildlife Wasteland
Wildlife Wasteland
Play as different animals and experience how they live!
Status | In development |
Author | apteryxrowi |
Genre | Survival |
Tags | 3D, Animals, Short, Singleplayer, Unity |
More posts
- Some bug fixesJun 07, 2024
- New mapMay 19, 2024
- NarrationnnApr 27, 2024
- More info cards!Apr 20, 2024
- Info cards!Apr 15, 2024
- Game added to itch.ioMar 28, 2024
Leave a comment
Log in with itch.io to leave a comment.