---
title: "Scripted Dialog"
date: "2020-03-29T00:00:00+00:00"
tags: ["gamedev","JavaScript","Phaser","Tiled"]
project: "The Legend of Zeta"
---

# Scripted Dialog

Source: https://greenzeta.com/update/scripted-dialog/
Last updated: 2026-01-08T04:00:09+00:00

Project: [The Legend of Zeta](https://greenzeta.com/project/the-legend-of-zeta/)

Added a simple script system for dialog. An object layer in the \#Tiled map defines interactive locations by assigning a key. The collision detector in the \#Phaser game looks for the key in a script object and displays associated text. Space bar cancels the dialog box.
