September 2011
Beginner
408 pages
9h 52m
English
Let's open our keep-up game project from the previous chapter, if it's not open already. We will write a really simple script and stick it to our Ball Game Object.
In the Project panel, right-click on an empty chunk of space and choose Create | JavaScript. Alternatively, you can click on Assets | Create | JavaScript in the menu at the top of the screen, or use the Create button at the top of the Project panel. A new script is added to the Project panel, inviting you to type a name for it. Name the script as "DisappearMe". It's also a good idea to use the same Create menu to make a folder and name it "Scripts", then drag your new DisappearMe script into it to keep your Project panel organized.
Read now
Unlock full access