This extension uses the Pointer Lock API to lock the cursor to the game screen when the game window is clicked, and retrieves the mouse changes once the mouse is locked. The included functions are:

  • mouse_x_change() - Returns the number of pixels the mouse has moved on the x-axis.
  • mouse_y_change() - Returns the number of pixels the mouse has moved on the y-axis.
  • clear_change() - Called after either mouse_x_change() or mouse_y_change() to reset them back to 0.

The file below includes the HTML5 first person demo above and the .gmez extension.

StatusReleased
CategoryOther
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(2 total ratings)
AuthorBerickCook
Made withGameMaker
Tags3D, First-Person, GameMaker

Download

Download NowName your own price

Click download now to get access to the following files:

PointerLock Extension and Example.zip 165 kB