BGO (class)
Jump to navigation
Jump to search
This class provides fields/functions for managing BGOs in the current level. (LunaLua ≥v0.7)
| BGO class | |||
|---|---|---|---|
| Type | Function/Field | Return values/Value type | Description |
| Constructor | myBGO = BGO(int internalIndex) | BGO | Construct a new BGO-Object. Only use this constructor with caution. Use BGO.get() instead! |
| Field | BGO.id | int | The BGO-id of the BGO. |
| Field (ro) | BGO.isHidden | boolean | True, if the BGO item is hidden. |
| Field | BGO.x | double | The x coordinate of the BGO. |
| Field | BGO.y | double | The y coordinate of the BGO. |
| Field | BGO.width | double | The width of the BGO. |
| Field | BGO.height | double | The height of the BGO. |
| Field | BGO.speedX | double | The x-speed of the BGO. |
| Field | BGO.speedY | double | The y-speed of the BGO. |
| Field | BGO.layer | Layer | The layer of the BGO. |
| Field | BGO.layerName | string | The layer name of the BGO. |