Alice Final Project: Step 8
Step 8: Events and Alternate Ending
Open the final project, lastname_firstname_finalproject7.a3p, and save it as lastname_firstname_finalproject8.a3p. Add the click event to the code. Add another event.
Add the code to call the regular ending or the alternate ending depending on which object is clicked.
Modify myFirstMethod so that the ending is not called from myFirstMethod, but from the click event.
What events have you added: _________, _________, _________,
Submit this document with steps one to 8 completed (nothing deleted) and the Lastname_Firstname_FinalProject8.a3p file in assignments.
Finish
Continue to add the finishing touches to the final project. Be sure to add comments, and save often using a progression of numbers as you have done throughout the design process.
Jack and the Beanstalk Example:
Step 8: Events and Alternate Ending
Open the final project, lastname_firstname_finalproject7.a3p, and save it as lastname_firstname_finalproject8.a3p. Find someplace where you can interact with the user by having them click on a choice. Add the click event to the code. Add another event.
You may need to modify MyFirstMethod and add a scene procedure(s) for the alternate ending at this point.
What events have you added: user clicks on hammer and Jack picks it up and chops down the beanstalk.
Submit this document with steps one to 8 completed (nothing deleted) and the Lastname_Firstname_FinalProject8.a3p file in assignments.
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 8 program to experiment.