Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

What was the issue with "Input.mouse_set_mode(MOUSE_MODE_CAPTURED)"? 

You might need to do it on a click or keypress though as browsers don't let you lock the cursor unless you do it as a result of an "engagement gesture"

Good luck!

I initially set it as the game just started, it will lock the cursor, but I realized that I must made mouse click or any key to lock cursor for web-based games, this is my fault for not realizing the importance of properly setting cursor locking at the first place.
Now I had it implemented properly just now, but now I will have something more to do before releasing the next version, appreciated your words here.