Hello,
I have been working on a FPS through a tutorial (a great one I might add)
it’s all been going great until I ran into a error that happens quite frequently (I think)
It gives me the error on the compiler BCE0044: unexpected char: 0xFFFD.
I have searched up all of the solutions for this but I cant really get what they are telling the user to do! this FPS has been in the workings for about 15 hours now and i would greatly appreciate help…
sincerely
var PlayerState : float;
var PlayerAnimSec : GameObject;
function Update ()
{
PlayerStateController();
PlaterAnims();
}
function PlayerStateController()
{
if ((Input.GetAxis(”Vertical”) !=0 || Input.GetAxis(“horizontal”) !=0))
{
if (Input.GetButton(“Sprint”))
{
PlayerState = 2;
}
else
{
PlayerState = 1;
}
}
else
{
PlayerState = 0;
}
}
function PlayerAnims()
{
if (PlayerState == 0)
{
PlayerAnimSec.animation.CrossFade("sittingstill", 0.4);
}
else if (PlayerState == 1)
{
PlayerAnimSec.animation.CrossFade("walking", 0.4);
}
else if (PlayerState == 2)
{
PlayerAnimSec.animation.CrossFade("Sprint Anamation", 0.4);
}
}