Skip to reading
Lua Scripting

Gameplay action fields / continued

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Earlier edition reference / Current 0.86.4.0 checked action IDs > p. 95

Gameplay action fields / continued#

Set2DEntityDepth / Set 2D Entity Depth

sceneId — Room (empty = current) [scenes]

entityId — 2D Character / Object [entities_for_scene]

depth — Drawing Depth [int] · default 100

Set2DLayerVisible / Show / Hide 2D Layer

sceneId — Room (empty = current) [scenes]

layerId — 2D Layer ID [string]

visible — Visible [bool] · default true

Set2DParallax / Set 2D Layer Parallax

sceneId — Room (empty = current) [scenes]

layerId — 2D Layer ID [string]

ratio — Parallax Ratio XY [vector2] · default [1.0, 1.0]

SetAttachPoint / Set Attach Point

entityId — Object / Character [entities]

point — Attach Point [string]

position — Position [vector3] · default [0, 0, 0]

rotation — Rotation (degrees) [vector3] · default [0, 0, 0]

bone — Bone Name (optional) [string]

space — Coordinate Space [string] · default "object" · object, model, sprite_uv

contactRadius — Contact Radius [float] · default 0.1

enabled — Enabled [bool] · default true

SetAutoInputSwitching / Automatic Input Switching

enabled — Enabled [bool] · default true

SetCameraBehavior / Set Advanced Camera Behavior

cameraId — Camera (empty = active) [cameras]

enabled — Enable Advanced Camera [bool] · default false

mode — Camera Behavior [string] · default "fixed" · fixed, follow, group, framed, path

targetId — Follow Target [entities] · default "player"

targetIds — Additional Target IDs (comma separated) [string] · default ""

lookAtId — Look At Target (optional) [entities] · default ""

targetOffset — Target Offset XYZ [vector3] · default [0.0, 1.3, 0.0]

damping — Follow Damping (seconds) [float] · default 0.2

blendDuration — Default Camera Blend (seconds) [float] · default 1.0

Page 62 of 133Permalink
Go to page