Learn Alice in FREE step-by-step lessons.
Unit II: Creating Code

A movie may have many scenes such as introduction, ending, and everything in between.
In the scene editor, you may create different scenes by arranging one scene on the left and one on the right, perhaps another in the middle.
In your code you will create a scene procedure with all the comments and code that belongs in the scene.
In myFirstMethod, you will call each of the scenes.
In this chapter, you will learn how to create and use scene procedures in Alice to organize a program using top-down design. You will learn how to begin with the overall task a program must accomplish and then break that task into smaller, more manageable procedures. By using scene procedures to organize related actions, you can create programs that are easier to understand, develop, test, debug, and modify.
Objectives:
- Be able to create a Scene Procedure
- Be able to call a Scene Procedure.
- Use Scene Procedures for Top Down Design.
- Disable a call to a Scene Procedure to facilitate testing and debugging
Please study the material at each of the links below.
Scene Procedure for Top-Down Design: A Scene Procedure is code that is separate from myFirstMethod
Procedures for top down design: Video shows how to use procedure for top down design.
Both an Indoor and Outdoor Scene
Move code to procedures
Scene Procedures: Hello World using procedures.
Scene Procedures2: The Yeti family says hello and goodbye using procedures.
Disabling Procedure: Disabling a procedure can help in debugging
Scene Parameters: Adding parameters makes the procedure more versatile.
Playing Sounds: Video shows how to import and play any mp3 file.
Self-Study Questions: What have you learned?- Complete Step 4: Scene Procedures for the final project.
Discussion questions: What do you think?
Glossary for Scene Procedures in Alice 3
Full Glossary