- Home /
 
               Question by 
               Kreativity · Jul 03, 2014 at 07:13 PM · 
                error  
              
 
              Error Code BCE0019
I can't find an answer to this error anywhere but my script is for making the character do he run animation when the a or d key is pressed but it says rowNumber isn't a member of object
 #pragma strict
 
 var AT; //Store something
 
 function Start () {
     AT = gameObject.GetComponent(AnimateTexture); //Store AnimateTexture Script
 }
 
 function Update () {
     if(Input.GetKey("a")){ //Player moves left
         AT.rowNumber = 1; //Change to running animation
     } else if(Input.GetKey("d")){ //Player moves right
         AT.rowNumber = 1; //Change to running animation
     } else r{ //Player is not moving
         AT.rowNumber = 0; //Change to idle animation!
     }
     
 }
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by tanoshimi · Jul 03, 2014 at 07:15 PM
And this is why UnityScript is a rubbish language for beginners.... you haven't typed your variables.
 var AT;
should be:
 var AT : AnimateTexture;
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                