Hi everyone. I recently started programming on javascript,but after applying a simple script on an object,the engine can't start the game,and it's shown an alert message down in the screen,that I don't know what mean. I think it's something wrong on my script,but I don't know exatly what. Here's a photo of my script and a photo of the screen when I try to start the game. Thanks since now
Code should be posted as code, not a screenshot, and definitely not as a camera shot. Ditto for error messages; just copy and paste them as text (and clearly point out the specific line they refer to). Please don't go out of your way to make it difficult for people to help you, thanks. --Eric
as @supremegrandruler posted, Transform.position should be transform.position ( read the documentation) If you look at the error message you'll see the line number and description of the error. also : It seems that you have changed the name of the between the piccy captures ... Your script is named NewBehaviourScript1.js in the first piccy and Blablablabal,js in the second. also, for next time : Regarding the error message Google An instance of type "UnityEngine.Transform" is required https://www.google.com.au/search?q=...rome..69i57&sourceid=chrome&es_sm=93&ie=UTF-8
Thanks for everyone who aswered! I simply changed "Transform" to "transform" as supremegrandruler said and it worked! I'm sorry for posting a photo istead of a screen shot,this won't happen again,I swear(I forgot how to do it,but know I know )