Updating animation state machines