Updating character behaviour.