- Home /
Duplicate Question
Error on Roll a Ball script Assets/scripts/playercontroller.cs(26,1): error CS8025: Parsing error
im trying to follow the roll a boll tutorial but the script isnt working please help also heres the script i am using
using UnityEngine; using System.Collections;
public class playercontroller : MonoBehaviour {
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal ,0.0f, moveVertical );
rigidbody .AddForce (movement);
}
what part is the class specifically i am totally new this is my first attmpt at anything close to this
Answer by robertbu · Nov 11, 2014 at 03:46 AM
Please search for your error before posting a question. Almost all Parsing error problems are due to an extra or missing '}' at the end of the file. Note you are missing a closing '}' to your class.
For future posts, please format your code. After pasting, select your code and use the 101/010 button.
Follow this Question
Related Questions
Error when I try to run the build in tutorial (roll a ball, tanks, and etc.) 0 Answers
What should I do if it shows this message ? Thank you 3 Answers
'position' is not a member of 'object' 2 Answers
Roll A Ball- "All compiler errors have to be fixed before you can enter playmode!" 1 Answer
Need help with this error 2 Answers