Creature Mod Tutorial 5 - "Stategraphs"

In this tutorial we're going to learn how to play animations on our creature based on the events we get from our 'locomotor' component.  In 'Don't Starve', this is done using a stategraph.  A stategraph is a collection of which states our creature can be in.  Our creature can only be in one state at a time.  Stategraphs switch between states by listening for events. This lets us control which sound and animation is played based on what's happening to our creature.  Let's get started!

	* Step 1 - Creating a new stategraph.
	Creating a new stategraph involves setting up the different states our creature provides and then handling events which cause the creature to switch between states.  You can see how this is done in the 'scripts/stategraphs/SGtut05.lua' example.

	* Step 2 - Attaching our stategraph.
	Now that we have a new stategraph, all that's left to do is attach it to our prefab.  You can see how this is done by checking out 'scripts/prefabs/tut05.lua'.

And that's it!  Now our creature will play the appropriate animation based on whether it's standing still or running.