Storytelling Through Computer Animation
Assignment A18: creating functions
Objectives- Learn to create and use your own functions
In programming languages, a functions is used to return value. Alice is no exception.
Functions are especially useful when you need a value multiple times.
Here is an example of a world-level function:

Here is that function being used in two different ways:

Here are these functions used in the context of a very short story. Why DO people run away when they are actually interested?
Your task: (which is to be completed individually, though consultations are encouraged...)
In this assignment, you will create and use your own function.
- In an animation which tells a story, create at least one new function which returns a value that you use in your program in more than one place or way.
- Note that your funciton may be world-level or object-level, but you should choose which makes sense. World level functions use multiple objects.
Please save your Alice animation as yourusername-A18.
Create an artist's statement as
follows:
- Describe the basic plot of your story.
- Explain in what ways the function you created is used in your story, and describe how these enhance your story.
- Explain whether you chose to use a world-level or an object-level function and why.
Submit two files: the Alice scene yourusername-A18 and the artist's statement yourusername-A18 to Moodle before class.