How would I add an air dash and jump/double jump to this script??

I’ve been thinking lately with this free form directional mechanic in mecanim and having my character run in this way is awesome and thanks to those who help me but i’m stuck on 2 things so far

  1. creating an air dash with mecanim
    2.creating a jump/double jump with mecanim
    *note the following code is free of use if you wan’t you character to move like in my previous post
using UnityEngine;
using System.Collections;

public class Movement : MonoBehaviour {

    Animator anim;

    bool grounded = false;
    public Transform groundCheck;
    float groundRadius = 0.2f;
    public LayerMask whatIsGround;


    // Use this for initialization
    void Start () {
      
        anim = GetComponent<Animator> ();
    }

    void FixedUpdate (){
  
        grounded = Physics2D.OverlapCircle (groundCheck.position, groundRadius, whatIsGround);
        anim.SetBool ("Ground", grounded);

    }

    // Update is called once per frame
    void Update () {

        float input_x = Input.GetAxisRaw ("Horizontal");
        float input_z = Input.GetAxisRaw ("Vertical");

        bool IsWalking = (Mathf.Abs (input_x) + Mathf.Abs (input_z)) >0;
        anim.SetBool ("IsWalking", IsWalking);
        if (IsWalking)
        {
            anim.SetFloat ("x", input_x);
            anim.SetFloat ("z", input_z);

            transform.position += new Vector3(input_x, 0f, input_z).normalized * Time.deltaTime;
            if (grounded && Input.GetKeyDown (KeyCode.Space))
            {
                anim.SetBool ("Ground",false);
            }
        }
    }
}

I actually think I know how to get my character running on walls and such and a fighting system but i’m just stuck at this part so I can’t move on to my attacks with out mobility so any suggestions thanks :slight_smile:

Someone help? Please?

Just responded to your other post.

There’s 3 of these posts

anyone who see’s this do not reply to this thread i’m trying to figure out how to delete this one since it’s 3 threads like this :slight_smile: