self:get_h_offset
Client
Retrieves the horizontal offset of the camera
Syntax
local offset = self:get_h_offset()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
float | offset | Current horizontal offset of the camera |
Examples
local entity = core.camera.create()
core.engine.print("info", "Horizontal offset:", entity:get_h_offset())