Skip to main content

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

Had problems where my cursor would get out of the game window (there is a neat line of code to do that in gdscript) !! :D

Oh! Do you know it? Would be good to know for future reference :D

My bad should have gave it right away :D Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)

(+1)

My bad x2 the good bit of code for 3D games is :

Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

:D

Thank you!!