Icon

PointerLock for HTML5

Berick Cook

You must be logged in to obtain assets

Description

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 download includes an HTML5 first person demo and the .gmez extension.

End User Licence Agreement (EULA).

Required Modules

HTML5 Export

Age Rating: 4+

Version

GMS1 - Version 1.0.0. Published March 30, 2015

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait