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
48 days ago
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
- New map1 day ago
- Narrationnn23 days ago
- More info cards!31 days ago
- Info cards!36 days ago
- Game added to itch.io53 days ago
Leave a comment
Log in with itch.io to leave a comment.