- Home /
 
               Question by 
               Jay Gondaliya · Feb 03, 2015 at 05:22 AM · 
                errorexpressionbce0077  
              
 
              BCE0077: It is not possible to invoke an expression of type 'float'.
i will try this code..
 function Update () {
     if(Input.touches.Length>0)
     {
         for (var i:int =0; i<Input.touchCount; i++)
         {
             var touch : Vector2 = Vector2(Input.GetTouch(i).position.x(Screen.height - Input.GetTouch(i).position.y));
             TouchButtonCheck(touch);
             TouchRotate(touch,1);
         }
     }
     else
     {
         TouchNone();
     }
 }
i am new here please guide me.
               Comment
              
 
               
              Answer by HarshadK · Feb 03, 2015 at 05:31 AM
In your line:
 var touch : Vector2 = Vector2(Input.GetTouch(i).position.x(Screen.height - Input.GetTouch(i).position.y));
you are actually passing only one parameter to your Vector2. There should be two parameters to Vector2. Maybe what you are looking for is:
 var touch : Vector2 = Vector2(Input.GetTouch(i).position.x, Screen.height - Input.GetTouch(i).position.y);
Your answer
 
 
             Follow this Question
Related Questions
HELP BCE0077: It is not possible to invoke an expression of type 'UnityEngine.Vector3'. 1 Answer
Can someone help me with this script please 2 Answers
BCE0077: It is not possible to invoke an expression of type 'UnityEngine.Animation'. Please help. 1 Answer
Javascript syntax errors with basic expressions 2 Answers
Expression cannot be assigned to, doing it wrong, but how? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                