Im making a side scroller game and the line of code i want use to flip the character
this is and i got one error on this :
#pragma strict
var X : float;
function Start () {
X = transform.localScale.x;
}
function Update () {
if(Input.GetAxis(“Horizontal”) >= 0.25){
transform.localScale.x = -X;}
else
if(Input.GetAxis(“Horizontal”) <= -0.25){
transform.localScale.x = X;}
and the error is in the last line of code
and the error name thing is this :C:\Users\Non Neon\Documents\New Unity Project 1\Assets\Scripts\TextureFlip.js(1,1): Error BCE0044: expecting }, found ‘’. (BCE0044) (Assembly-UnityScript)
and please make the so simple a kid do it…beacuse im 14