Enemy keeps floating throw roof?
Every time the player follows the player it just starts going tword them then floats up. I have locked the X,Y,Z rotation and turned on the box collider any help? Coding used for them to follow player:...
View ArticleNullReferenceException: Object reference not set to an instance of an object ?
#pragma strict import UnityEngine.UI; import System; import System.IO; public class PlayerBorder extends MonoBehaviour { public var player: ePlayer; public var score : ScoreUI; function...
View ArticleNeed help with automatic weapon firing!
Hello! I have a problem. My automatic weapon fires way too fast and whenever it shoots the sound doesnt finish. It's like "ba-ba-ba-ba-ba-ba-ba-bang (bang is when I let go of left mosue button) I don't...
View ArticleScript causing huge lag
I've got a movement script where when an object is set active from an object pool, it moves along a curve smoothly. There are many objects in the scene at the same time with similar scripts to this....
View ArticleProblem with compiling js in MonoDevelop
I got the project to fix, but unfortunately I can't build it in Monodevelop. Every script is written in js. It says that "Error CS0006: Metadata file 'DIRECTORY\Temp\bin\Debug\Assembly-UnityScript.dll'...
View ArticleActivate line just one time
Hi , I need help. How can I activate a line just one time , until the "if" changes , like a GetKeyDown but for vars, for example(JS); example: boolean; function Start () { example = true; } function...
View ArticleLight brightness "for loop" doesn't work
So, i'm trying to make a script that basically does this: When the game/scene starts, the light is very bright and gradually dims down to the desired intensity. But, it doesn't work. Whenever I try to...
View ArticleRetrieving item from HTML5 Session Storage
I'm developing a game for HTML5 and I've been asked to use something like *sessionStorage.getItem("test"); * to retrieve a string from the site. I've looked at stuff like *Application.ExternalEval()*...
View ArticleProblem with compiling js in MonoDevelop
I got the project to fix, but unfortunately I can't build it in Monodevelop. Every script is written in js. It says that "Error CS0006: Metadata file 'DIRECTORY\Temp\bin\Debug\Assembly-UnityScript.dll'...
View ArticleWondering script Javascript
So i want to make a wondering script in javascript that if player is not hiding it follows you (Already programmed) but if you are hiding then it will wonder around toward or away from you. Any help?...
View ArticleHow do i complete my firing script, i need to know how to shoot a bullet.
Hi, fellow unity programmers. As shown in the code below it is obvious i am a beginner at coding (2 days coding js). I require a script that shoots a bullet for me, i have attempted and i think i did...
View ArticleWhat is unity WebGL export's correlation to Node.js?
Hello world! We're trying to play around with unity's webgl export and for reasons of running our client on certain platforms we already have in place I'd like to find out more about why there are so...
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 ArticleUsing Js Library in Unity - (Intention to use d3.js or similar)
I would like to use the data visualisation library d3.js in Unity, so I can ultimately navigate through a 3d world with all the different visualisations (2d or 3d). Possible to integrate into Microsoft...
View ArticleBCE0043 and BCE0044 errors, expecting ), found '.' and unexpected token )
I'm a bit new at using Animations, and I've had a hard time getting them to work. I've made separate scripts for each movement and action. Here's a basic Jump script that for some reason, isn't...
View ArticleMove an object when holding down 3 keys, But only using 2?
I am making a guitar hero style game, And im making it so when i press 1 and backspace together, the fret will bounce up. I also want to do this to 4 other frets. When im holding 1 and backspace only,...
View ArticleHow can I update timer using a collision?
**I have a empty game object called Clock with this script attached, I want to try and add time when I collid into another game object.** var timer : float = 10.0; //Create varable Timer of type float...
View ArticleFirst Person Controller error, "IndexOutOfRangeException:Array index is out...
I'm using a default first person controller script combined with 2 javascript animation scripts, and I'm getting the titular error on line 172 of the aforementioned first person controller script. Here...
View ArticleError BCE0051 Operator '-'
Line(5,9) Help please aYUDA PORFAVOR ME DA ERROR ------------------------ *** > Blockquote> var vida = 100; function QuitarVida (Dano : int) { Vida -= Dano; } > Blockquote var Dano = 10;...
View ArticleExpecting EOF, found '}'
I got this error in the script I am making for my FPS can anyone help out if(Input.GetButtonDown("Fire1")) { var gunsound : AudioSource = GetComponent.(); gunsound.Play();...
View Article