Error: Transition '' in state 'breath' uses parameter '' which does not exist in controller.
Error: Transition '' in state 'breath' uses parameter '' which does not exist in controller.
public void Control ()
{
float velx = 0;
if (Input.GetKey(KeyCode.D))
{
velx = speed;
sprite.flipX = true;
}
else if (Input.GetKey(KeyCode.A))
{
velx = -speed;
sprite.flipX = false;
}
maria.velocity = new Vector2(velx, maria.velocity.y);
anim.SetBool("move", velx != 0);
}
Switch to Parameters
tab (upper-left side of the screen) and create a Boolean
parameter named move
there.
but the problem is that i don’t have any parameters i could choose, like “move”. it just writes parameter does not exist. i created boolean in the code.
You need to create this parameter yourself there. Parameter name & type must both match with what you call from the controller script (errors otherwise)
Your answer

Follow this Question
Related Questions
Set transitions not working with right click in Mac 0 Answers
Animator Layers Bug - Can't change layer position 1 Answer
How do I know what animation I can transit to in the animator, from my current animation? 0 Answers
My animations started acting weirdly 0 Answers
Animation clip not playing but still affecting components of other clips 0 Answers