I was using this script for this game I was making and no matter what I tried, it always came up with this error Assets/scripts/stomp.js(3,17): BCE0044: unexpected char: 0x201c This is my script. #pragma strict function OnTriggerEnter(other : Collider){ if(other.tag == “Player”){ transform.root.gameObject.GetComponent(Enemy).stomp = true; } } Its nothing complex. It says that there is a problem with Line:4 Char:4 Error: Invalid charecter Code:800A03F6 Source: Microsoft JScript compilation error Can someone PLEASE help me? THANKS!
First off, read the sticky post about code tags and how to use them. Second off, assuming this code is exactly as seen in your script, the problem would be that there's a space between stom and p in the 4th line.
I did try the stom p thing but that didn't work. I got the same exact error. And what do you mean about sticky posts?
tried what you said wandyr but it didnt work. Is it a problem that I'm not using monodevelop though? I'm using notepad ++