i dont know what is wrong with my code and after 6 weeks i cant figure it out, i'm trying to make my third person character to walk and move

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class player : MonoBehaviour {

public Animator anim;

private Float inputH;
private Float inputV;

// Start is called before the first frame update
	void Start()
	{
    	anim = GetComponent<Animator>();
	}

	// Update is called once per frame
	void Update()
	{
    	if(Input.GetKeyDown("w");
	{
		anim.Play("HumanoidIdle,-1,0f);
		}
	}

	inputH = Input.GetAxis("Horizontal");
	inputV = Input.GetAxsis("vertical");
	
	anim.SetFloat("inputH",inputH);
	anim.SetFloat("inputV",inputV);
}

}

Hello.

You should go make some exercicies of basic scripting. Read code, carefully, and learn the basics.

This forum is for Unity issues, and your problem is basic scripting…

if(Input.GetKeyDown("w");

if sentences do not finich with “;”

if (something)
{
something;
something;
}

Bye.

Post Closed