Game Development Reference
Changing a dynamic text field
In the following example, you'll use depPaopK^fa_p to change the text of a dynamic text field.
1. You already have a lh]uan object that you can move around the screen. Create another object
that your lh]uan object can interact with and give it the instance name enemy . I created an owl
character, which you can see in Figure 7-3.
Figure 7-3. Create an object called enemy.
2. Create a dynamic text field and give it the instance name messageDisplay . Figure 7-4 shows an
Figure 7-4. Create a dynamic text field called messageDisplay.
3. Save the ejpan]_peraLh]ucnkqj`*bh] file.