Quantcast
Channel: Questions in topic: "javascripting"
Browsing all 105 articles
Browse latest View live

how to fix menu button "play"

var play = false; var Developer = false; var Quit = false; var Camera1 : Camera; var Camera2 : Camera; var back = false; function OnMouseEnter() { GetComponent.().material.color = Color.red; } function...

View Article


After Draging and droping "javaScript" into the GameObject, the "JavaScript"...

After draging and droping JavaScript into a GameObject,...JavaScript refuse to appear in the inspector,...note that in the inspector,..only the Target appears very bold. while the script is xtremely...

View Article


*JavaScript* High Score help (Need help with player prefs)

I have to make a high score display on the game over and menu scene, Right now I have just once you die, it displays the score you had gotten from that run on the game over scene and then resets wen...

View Article

help with mono development and javascript?

NullReferenceException: Object reference not set to an instance of an object fillinventory.Start () (at Assets/script/fillinventory.js:13)

View Article

How should I write this Class out?

Hi everyone I am having issues writing one of my classes with in a class simulation in java script. The simulation is that of out class room. Eventually a computer with catch fire and other classes...

View Article


Changing Material In A Script? [Sorted]

How would I change a material in a script. I am generating infinite terrain though for my blocks I can't change the material... Everybody elses code doesn't work on mine for changing materials.

View Article

how to run 3rd person automaticaly

I am making a racing game in unity like Temple Run where the player needs to constantly run and collect fruits/ power ups. I am using the 3rd person default construction worker to make this work. But...

View Article

Where is the missing semicolon?

I just need to get the objects with the "Gravity" tag. Here is the error:Assets/Scripts/PlanetGravity.js(11,24): UCE0001: ';' expected. Insert a semicolon at the end. Here is the line: var...

View Article


How I can find the complete event of my animation

I am creating a demo in which I play two animation one is default which always run in background and one is when I clicked on my button. I want my default animation stops until my clicked animation not...

View Article


';' 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 Article

Animating 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 Article

Help 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 Article

Javascript 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 Article


Disabled 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 Article

target 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 Article


Rotate 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 Article

Call 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 Article


score 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 Article

Can 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 Article

nullreferenceexception 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 Article
Browsing all 105 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>