Adding a New Script
- Select your Red Part.
- Open the View tab.
- Click the Explorer Button on the far left.
- In the Explorer Window on your right, look for the Red Part (should be highlighted blue if you already have it selected in your World Editor).
- Hover your mouse over the Red Part and right-click.
- Select Rename from the pop-up menu.
- Rename this part Trap.
- Hover your mouse over the Trap again and click the white Plus button.
- Add a Script.
- Delete any code in the script.
We will begin coding on line 1.