Monday, October 26, 2009

Homework 6

Here is the link:

This was a very challenging homework, because while I was coding it, I encounter various problems, however, with the things I have learn in the class, and other knowledge from former programming I was able to overcome the problems and finish the homework.
In this exercise I choose 7 different effects or animations:
1: Zoom in
2: Zoom out
3: Vertical movement
4: Horizontal movement
5: Fade in
6: Fade out
7: Bounce
and each one of them are available in a menu in the upper right corner, then when you click on the number will execute the animation.

The biggest problem that I had is that I needed to keep pressing the mouse click to the effect to execute, but I declare another variable "op", that works as a flag, so when is true will execute the effect; another problem was the initialization of the variables so the effect can be perform more than once; and this was simpler to fix, just with an "if" statement to set the variables to their initial value.

No comments:

Post a Comment