Scripting, debugging and delivery
On this page
New features workbook
Try the script examples in a project copy. Each exercise ends with an observable result you can check in the editor or Runner.
Expose functions to designers#
| Lesson | Page |
|---|---|
| Expose a reviewed function to designers | 24 |
| Review a PCA Script declaration | 25 |
| Review a Lua declaration | 26 |
| Review a BASIC declaration | 27 |
| Review a GDScript declaration | 28 |
Debug, measure and deliver#
| Lesson | Page |
|---|---|
| Follow a fault from the GUI to the script | 29 |
| Pause a Lua function on a line | 30 |
| Pause a BASIC function on a line | 31 |
| Pause a GDScript function on a line | 32 |
| Save a repeatable script test | 33 |
| Measure a scene on the device that runs it | 34 |
| Review an older project before saving it | 35 |
| Retest the letter puzzle after a save | 36 |
| Check the game data in a desktop build | 37 |
Opening the sample projects#
In Studio, use File → Open Project. In the extracted Studio release, open examples/workbenches. Rotary-Workbench.pca3d has the phone and ticket gate. Clock-and-Debugging.pca3d has the geared clock and script tests. Instrument-Room.pca3d has the alarm, pressure gauge and porter.
PCA 3D / Studio 0.86.4.6 and 0.86.4.7
