Question by
Alfhel · Mar 02, 2016 at 07:17 PM ·
errormonodevelopparsingparsing error
Parsing error
Hello.
I am not a coder so now you know that. Basically I followed a tutorial on how to make a game and I tried to play and this error happened:
error CS8025; Parsing error
This is the script:
using UnityEngine;
[RequireComponent(typeof(PlatformerCharacter2D))]
public class Platformer2DUserControl : MonoBehaviour
{
private PlatformerCharacter2D character;
private bool jump;
void Awake()
{
character = GetComponent<PlatformerCharacter2D>();
}
void Update ()
{
// Read the jump input in Update so button presses aren't missed.
if (Input.GetButtonDown("Jump")) jump = true;
}
void FixedUpdate()
{
// Read the inputs.
bool crouch = Input.GetKey(KeyCode.LeftControl);
float h = Input.GetAxis("Horizontal");
// Pass all parameters to the character control script.
character.Move( h, crouch , jump );
// Reset the jump input once it has been used.
jump = false;
}
}
}
Comment
Answer by Cygneis · Mar 02, 2016 at 07:26 PM
A parsing error means that you have too much brackets or not enough. (line 34 ^^)
Your answer
Follow this Question
Related Questions
How to fix this parsing error? 2 Answers
Parsing error CS8205,Parsing Error CS8205 2 Answers
Copy and Pasted code for Trajectory and got one parsing error... 1 Answer
Parsing error, 1 Answer