Var GameObject not considering Clones.
Hi Everyone, I found this script long ago (I don't even remember where) that allows a game object pick up another object (In my case a FPSplayer picking up a sphere) The code works by assigning the...
View Articledrawn animation
im new to coding and i cant understand how to make an drawn animation anyone have an example?
View ArticleIs it possible to summon specific GameObjects (i.e. from Assets) on a...
Adding up to this answered question: http://answers.unity3d.com/questions/653783/is-it-possible-to-destroy-an-object-at-a-specific.html I dont have the ID of the object.
View ArticleBig Delay in Networking
Hi there, I am not sure how to explain this: I am working on a 2D shooter, and when playing in Internet the delay is kind of big (0.5 secs maybe), sometimes this delay makes the shoot hit the own...
View ArticleHow to detect if the player is not moving
Hello there! I am having a problem with my javascript code. I want to make a code that detects if the player is moving, and if he does not move for example for 15 seconds, to respawn him at the...
View ArticleSpeedometer is not accurate
So these lines of codes should show me the current meters per second of my player, but the actual float just doesnt seem right. What I mean is that, when idle, the value is something random such as:...
View ArticleDuplicating NavMesh Objects
Heya. I have a strange problem. I've made a NavMesh object, and I need to dublicate it. But when I'm doing it, these objects are not moving. There's a code of Nav Meshed Object: #pragma strict private...
View ArticleUnityEngine.Rect' does not have a visible constructor that matches the....
So I am trying to make a stamina, Health, and Mana bar but when I save the script it says "UnityEngine.Rect ' does not have a visible consturctor that matches the...." can someone help me in finding...
View ArticleHow to rotate camera view?
I made a camera as a child of a spaceship trying to make it rotate along with the ship, but it seems to only follow the position of the ship without view rotation. How can I make the camera view rotate...
View ArticleHelp With moving Sprite Script,
I want to make a moving sprite script but it isnt putting in the moveLeft and moveRight on Unity but its putting moveUp and moveDown, im using rigidbody2D, this is my script #pragma strict var moveUp :...
View ArticleHow do I make something pop out of the edge of the screen and move forward...
So, Im making a game where you have to evade blocks coming out of the screen and I would like to ask how to make them work
View Articlehow to make a level block/unblock
Hi everybody, I am Arkin160, but we don't care :) . I made a lot of research and I don't find what I need, that's why I ask the question here. I know the question was probably asked a lot of time, but...
View Article,what's the wrong on my script , and Please give the right answer
var Player = false; var paper = GameObject; function paperToWin if{ player > paperToWin } int = '21' true; Destroy(this.GameObject) ;
View ArticleGetting BCE0005: Unknown identifier: 'EditorStyles' error what is wrong with...
When I try to build my Unity3D project I keep getting the BCE0005: Unknown identifier: 'EditorStyles' error with the code below: **selGridInt = GUILayout.SelectionGrid(selGridInt, selStrings, 5,...
View ArticleGameJolt API simple Score
Hello Guys. I'm realy mad right now becouse i rly don't know how to make a simple Score Board on Gamejolt.com. I tried everything out etc and i followed a Youtube Video to learn how to make a simple...
View Article[JavaScript] How do you reference another object in a script?
We need to reference a component from another object, that isn't parented, through a script in JavaScript. We are very new to coding in Unity and are not quite getting it... How exactly do we use...
View Articleblock interaction input field on end edit
Hi I have a script with input field but i don't know how to activate the function read only in the input field script: ![alt text][1] I made 3 days of research bbut, my time is not extensible, i really...
View ArticleProblem with finding animator.
So i have a weapon that gets Instantiated into the scene and it need a animator. I tried to use this code but it wouldn't work. var TheAnimator : Animator; function Awake () { var TheAnimator :...
View ArticleConvert r2d.position.x to Pixels UnityScript
When calling: `print(GetComponent(Rigidbody2D).position.x);` it gives me 1.46. What type of value is this? Int, Float, Object? When calling: `print(Screen.width);` it gives me 949. So this is a pixel...
View ArticleHow do I make a enter and exit car script?
I'm trying to make a enter and exit script for my game... I'm using the standard assets car model and scripts if you can help me with that I would deeply Appreciate you...
View Article