My Parameters are all bools and i just don’t get why it’s saying this.
Controller ‘Main Character Animator’: Transition ‘’ in state ‘normal’ uses parameter ‘Jump’ which is not compatible with condition type.
My Programming:
![using UnityEngine;
using System.Collections;
public class PlayerMoving : MonoBehaviour
{
public float moveSpeed = 10;
public float jumpingisfun = 10;
Animator anim;
// Use this for initialization
void Start ()
{
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update ()
{
bool x = Input.GetButton ("Player right");
bool y = Input.GetButton ("Player left");
bool jump = Input.GetButtonDown ("Jumpingisfun");
anim.SetBool ("Speed", x);
anim.SetBool ("Jump", y);
anim.SetBool ("Left", jump);
if (Input.GetButton("Player right"))
transform.Translate (Vector2.right * moveSpeed * Time.deltaTime,0); //Move right
if (Input.GetButton("Player left"))
transform.Translate (Vector2.left * moveSpeed * Time.deltaTime,0); //Move left
if (Input.GetButtonDown("Jumpingisfun"))
transform.Translate (Vector2.up * jumpingisfun * Time.deltaTime, 0); //Jumping IS Fun!! :D
}
}][1]
alt text