Camera (class)
Jump to navigation
Jump to search
This class provides access to the SMBX cameras. NOTE: Only access this class in onCameraUpdate if you want the correct values or overwrite these values!
| Camera class | |||
|---|---|---|---|
| Type | Function/Field | Return values/Value type | Description |
| Field | Camera.x | number | The x position of the camera at the scene. |
| Field | Camera.y | number | The y position of the camera at the scene. |
| Field | Camera.renderX | number | The x position of the camera at the screen. (LunaLua ≥ v0.7.3) |
| Field | Camera.renderY | number | The y position of the camera at the screen. (LunaLua ≥ v0.7.3) |
| Field | Camera.width | number | The width of the camera. |
| Field | Camera.height | number | The height of the camera. |