Storytelling Through Computer Animation
Assignment A16: if-else conditional
Objectives- Learn to use the if-else construct in your animations
In programming languages, conditional if/else statements are used to make decisions. These are especially useful in animations when coupled with a in interactive animations or when coupled with random numbers or random probabilities.
For example, we might have a story about a chearleader who is asked by both a jock and a nerd to go to the prom:

Then, clearly, there are two natural ways for the plot to progress. Either she chooses the jock or she chooses the nerd.
Here are a couple of ways we could use an if/else construct:


Your task: (which is to be completed individually, though consultations are encouraged...)
In this assignment, use a conditional if/else in the context of a story.
- Your animation must tell a story.
- In this story, use the if/else construct in a meaningful way. The story can be interactive or use random numbers or random probabilities, but it must be possible to reach each branch of the if/else somehow.
Please save your Alice animation as yourusername-A16.
Create an artist's statement as
follows:
- Describe the basic plotline(s) of your story.
- Explain in what ways the if-else you created is used in your story, and describe how it enhances your story.
Submit two files: the Alice scene yourusername-A16 and the artist's statement yourusername-A16 to Moodle before class.