Zebra0.com

aliceAlice Final Project: Step 7

Alice Final Project: Step 7

Step 7: Arrays
Open the final project, lastname_firstname_finalproject5.a3p, and save it as lastname_firstname_finalproject6.a3p.  Find someplace where several objects do the same thing. Modify the code to use an array. For instance, you may want to make several items invisible by setting the opacity to 0. Create an array of these things, then use a loop to change the opacity.
Do NOT add any code to MyFirstMethod. Any new code should be in one of the scene procedures.
What array have you added: _________ Which scene procedure uses the array? _______
Submit this document with all previous steps completed (nothing deleted) and the Lastname_Firstname_FinalProject7.a3p file in assignments.


Jack and the Beanstalk Example:

Step 7: Arrays
Open the final project, lastname_firstname_finalproject5.a3p, and save it as lastname_firstname_finalproject6.a3p.  Find someplace where several objects do the same thing. Modify the code to use an array. For instance, you may want to make several items invisible by setting the opacity to 0. Create an array of these things, then use a loop to change the opacity.
Do NOT add any code to MyFirstMethod. Any new code should be in one of the scene procedures.
What array have you added: riches has some things that become visible (opacity=1) Which scene procedure uses the array? Riches


Submit this document with all previous steps completed (nothing deleted) and the Lastname_Firstname_FinalProject7.a3p file in assignments.

Download the Jack in the Beanstalk step 7 program to experiment.