Skip to reading
Lua Scripting

Use the guide on your version

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
On this page

PLATFORM AND RELEASE NOTES

The screenshots use the Linux editor in English. Follow the control names and record IDs on your platform. File-browser layouts, translations and panel positions can differ.

Source table from Use the guide on your version, page 16
Windows, macOS, LinuxUse the same Lua records and project IDs. Open your game in PCA3D and select the Lua Designer. Use the same record and function names on all three platforms.
Touch and small screensTap the same controls. Scroll narrow toolbars and use the Inspector tab arrows. Test the text box with the device keyboard and use the Check button to submit.
Mobile and browser gamesAndroid, iOS and Web have target-specific Lua extension entries in the 0.86.3.4 source. Use the matching build/export setup. Check the puzzle and save/load on the exported game.
Older PCA3D releasesLua records first appeared in 0.39.0. Version 0.39.1 fixed nested table conversion across scripts. Functions as Nodes and Call Script Function arrived in 0.81.0. Use the Lua function directly on earlier Lua-capable releases.

What was checked#

The screenshots and playtests used PCA3D 0.86.3.4 with Godot 4.7.2 on Linux. The tests included Lua basics, GUI click dispatch, the locked and open door, saving and restoring the flag, custom events, file writes, timed branches, calls between records and a native Godot overlay. Other operating systems and individual historical releases were not separately run.

Where to find a command for your build#

Open Lua Guide in the Lua toolbar. Insert Snippet shows the templates shipped with your editor. The reference pages that follow describe the 0.86.3.4 catalog. For the language itself, see the Lua 5.4 Reference Manual.

Lua scripting   /   Illustrated guide                                                          W16
Page 16 of 133Permalink
Go to page