';' expected. Insert a semicolon at the end. I already have a ;
It says the error is in the second line under the movement check but I already have a semicolon. I tried to figure it out but I have no idea what to do now. function Update () { //Movement Left and...
View ArticleAnimating main player when click on object
Hii,, I am new to unity as well as scripting plz bare me.. i am trying to play an animation of my main player when i click on the other object... for instance i am trying to do script(Java only) to...
View ArticleHelp with OnTriggerEnter and mouse down
Hello. I made a script, which in theory should work, but doesn't. I want it to when I click, while in the collider, destroy the prop and display the phone. It's kind of like a fake pick-up system....
View ArticleJavascript unexpect "f" value
For this code im getting an error saying:"BCE0043: Unexpected token: 2.0f. " > if> (Physics.Raycast(myTransform.position,> -transform.up, out hitInit, 2.0f, initPosMask.value)) {extra code...
View ArticleDisabled Script Enables Itself
Hey guys. The script below is something I made real quick. I disabled the script in the inspector, and made it so it turns itself on when an OnMouseDown function is executed. Basically what I want is...
View Articletarget variable of another script
How do I target the multiplier? I keep getting confused by the samples. ![alt text][1] [1]: /storage/temp/53947-target.jpg
View ArticleRotate Y over time
There is lots of post on this and I cant get it to work function Increment() { Count++; if(Count == CountTo) { //if(Gate.transform.Rotate != (0,90,0)) //{ Gate.transform.Rotate(0, 90, 0); //} } } That...
View ArticleCall Android method without JAR or without specifiying bundle id?
Hello guys, The title pretty much sums it up all. Do we really need to specify the bundle id in the JAR file that would be compilated, or to include the JAR file at all? It is really a pain in the ass...
View Articlescore counter not working
well i have been trying to fix this problem for a few days now and i still can't find the problem. my score counter wont register. for some reason it wont make the connection from my controller script...
View ArticleCan anyone please tell what to do make a bomb explode on touching ?
i am making a military scene where a the first person controller go and steps on a mine . i made the mine but how to make it working ??? any help would be appreciated.
View Articlenullreferenceexception object reference not set to an instance of an object
Please Help #pragma strict public var damage :int; function Start () { damage = damage; } function OnTriggerEnter(p : Collider){ if(p.tag == "Enemy") { GetComponent(EnemyHealth).HP -=damage;...
View ArticleAdd a variable into a statement?
I'm going through a scripting tutorial and it's talking about if statements. It has just shown me how to do... if (playerHealth <= 0) print ("You're Dead"); What if I wanted to do an else statement...
View ArticleAdding sound to a script trigger
Hello, I got small Jump scare script that I would like to add sound to it and destroy it after one trigger. I added the variable but i just can't figure out how to get it to work. I would appreciate...
View Articledont have autocomplete in java script
please reply i dont have autocomplete in java script but in C# founded what i do ? i need autocomplete in javascript.
View ArticleGun shooting help
I am creating a game where you are the starting as the unity jet object. There will be other planes that are enemies that are going to follow the player and shoot him. Right now I am trying to make the...
View ArticleWhat do I do when This error shows up ?
Please Help ! What Do I Do when this ERROR shows up : Assets/KillOnHit.js(8,9): BCE0044: expecting), found 'var'. From the Series of MAKE A GAME (By Brackeys) Video 22 The script : ![alt text][1] [1]:...
View ArticleBrowser Error: Window function is not a function when called from WebGL...
Hello, I am trying to send data from my WebGL player to a JavaScript function declared on the window. However, I keep getting an error: Uncaught TypeError: window.relayImgurData is not a function Here...
View ArticleJavaScript Error
I have a JavaScript that whenever i press a button, in this case "j", it will play an animation (walk). But whenever i use the script on a FPS Controller in standard assets, it says all compile errors...
View ArticleDid unity 5 discontinue unityscript/javascript and go strictly to c#?
The version 5 uprgaded my project and threw right into c#. Has Unityscript been dropped in favor of c#? I cant seem to find a specific link due to all the other links of history on the web. Thank you...
View ArticleReset score to 0
I can't figure out what is wtong with my code, I wan't the score to reset when I collide with a specific tag but nothing happens? How can I do this with javascript. #pragma strict static var score :...
View Article