public void isHumanoid()
    {
        if (dead)
        {
            bodySprite.flipX = false;
            bodyAnim.SetBool("Dead", true);
            headSprite.enabled = false;
        }
        else if (hurt)
        {
            bodySprite.flipX = false;
            bodyAnim.SetBool("Hurt", true);
            headSprite.enabled = false;
        }
        else
        {
            bodyAnim.SetBool("Hurt", false);
            //if the player has aquired an item
            bodyAnim.SetBool("Item Aquire", aquireItem);
            //if moving vertically
            if (moving.forward || moving.backward)
            {
                bodyAnim.SetBool("isWalkingVertical", true);
            }
            else
            {
                bodyAnim.SetBool("isWalkingVertical", false);
            }

            //if moving horizontally
            if (moving.left || moving.right)
            {
                bodyAnim.SetBool("isWalkingHorizontal", true);
                //if moving left
                if (moving.left)
                {
                    bodySprite.flipX = true;
                }
                else
                {
                    bodySprite.flipX = false;
                }
            }
            else
            {
                bodyAnim.SetBool("isWalkingHorizontal", false);
                bodySprite.flipX = false;
            }

            //if you are not pressing a firing button, face foreward and reset animations
            if (!bodyAnim.GetBool("Item Aquire"))
            {
                if (facing.AllFalse())
                {
                    if (moving.AllFalse())
                    {
                        moving.ForceFacing("forward");
                        facing.ForceFacing("forward");
                    }
                    facing.forward  = moving.forward;
                    facing.backward = moving.backward;
                    facing.left     = moving.left;
                    facing.right    = moving.right;

                    crying           = false;
                    headSprite.flipX = false;
                }
            }

            if (invincible)
            {
                Invincibility();
                invincibleTime -= Time.deltaTime;
                animationTime  += Time.deltaTime;
                if (invincibleTime <= 0)
                {
                    invincible     = false;
                    invincibleTime = 0.7f;
                    animationTime  = 0;
                }
            }
            //if you've aquired an item
            else if (bodyAnim.GetBool("Item Aquire"))
            {
                bodySprite.sprite  = ItemAquire;
                headSprite.enabled = false;
            }
            else
            {
                headSprite.enabled = true;
                //checks if crying
                if (crying)
                {
                    //checks facing directions
                    if (facing.forward)
                    {
                        headSprite.sprite = ForwardCrying;
                    }
                    if (facing.backward)
                    {
                        headSprite.sprite = BackwardCrying;
                    }
                    if (facing.right)
                    {
                        headSprite.sprite = HorizontalCrying;
                    }
                    if (facing.left)
                    {
                        headSprite.sprite = HorizontalCrying;
                        headSprite.flipX  = true;
                    }
                    else
                    {
                        headSprite.flipX = false;
                    }
                }
                else
                {
                    //checks facing directions if not crying
                    if (facing.forward)
                    {
                        headSprite.sprite = Forward;
                    }
                    if (facing.backward)
                    {
                        headSprite.sprite = Backward;
                    }
                    if (facing.right)
                    {
                        headSprite.sprite = Horizontal;
                    }
                    if (facing.left)
                    {
                        headSprite.sprite = Horizontal;
                        headSprite.flipX  = true;
                    }
                    else
                    {
                        headSprite.flipX = false;
                    }
                }
            }
        }
    }