A state machines can be used for many purposes but, in this chapter, we will only cover topics related to animation.