Cloning objects infront of the player at a random distance
Hello there, First I want to thank everyone who helped me last time :) Now I have one more question, Script is: using UnityEngine; using System.Collections; public class GameController : MonoBehaviour...
View ArticleMinecraft - Water Physics
Hello! I'm making a minecraft clone and I want to create some water too! I made a script that checks whether an object exists next to the water object and if there's no object there, it creates another...
View ArticlePausing animation/movement of a Clone (instantiated enemy)
I'm trying to implement a simple pause button and have been able to pause all animations and motions of my various characters in the game except the clones. I instantiate enemies a few seconds after...
View ArticleHow can I enable/disable a component of a Clone
So I am working on a game which spawns between 0 and 12 clones of a prefab, what I wanted to do at first was to enable the component on a set amount of those clones but I couldn't figure out how to do...
View ArticleHow do I change the transform of a clone object
I'm trying to change the transform of an object I've just instantiated using the following: public GameObject marker; public float maxLength; newVector = Vector2.ClampMagnitude(diffVector, maxLength);...
View ArticleHaving an issue with instantiating objects on button clicks
Theres a button in my scene and I want to instantiate an object when I press it but it returns the error: Type IPointerClickHandler expected Button received. i:0. The variable bullet of helicopter has...
View Articlesend SCORE from OBJECT(clone) to other file
Hi guys. My experience is very small. And my english bad. And Google in 10 hours could not help me. I have 3 script 1. cameraController 2. bg 3. bubbleMove cameraController contains a system of points....
View ArticleReference an Instance of an Object?C#
Hi there! I've got a question about a specific problem related to a topic which seems to be hard to understand. That topic is .GetComponent<>(); The question may sound silly but before I got...
View ArticleCandy Crush tutorial
Does anybody know where to find any good candy crush or bejeweled tutorials for unity are? I have been looking for a while and cant seem to find any good tutorials. I do not wish to purchase any...
View ArticleRandom ball generator?
Hello, I need help creating a game. I want to have a character on the bottom of the screen of my 2D game, and I want balls to be spawned randomly from the left and right walls. Now, everything is good...
View ArticleFLAPPY BIRD CLONE
So basically ive just started in unity and i found a tutorial to make a flappy bird clone (http://anwell.me/articles/unity3d-flappy-bird/) And basically my problem is when i downloaded the background...
View ArticleInstatiating an object. Altering that new object causes prefab to be altered.
I am new to Unity3d and I'm playing around with a proof of concept project. I'm currently stuck because I use a blank terrain prefab (easily instantiable) that I may want to include having its own...
View ArticleFollowing Object can't find newly Instantiated Object (Solved)
I have 2 objects in my game, a sphere and a cube. The sphere starts at position A and the cube moves towards it using the following script - #pragma strict public var victim : Transform; private var...
View Articleanim.SetBool not working on cloned GameObjects
Hey, new to Unity2D. I currently working on creating a 2D sidescroller game. I am cloning an enemy in my game that when it take a hit it should set a boolean to true. The issue is that it will change...
View ArticleRotate a cloned object with key press
I'm trying to rotate a cloned object once it is spawned but i'm having difficulty and cant find any information about how to do this. For example, i spawn a wall, once i press "R" it rotates to 90...
View ArticleWhy could I delete my clones onlY in the same order of instantiation?
Hi! I am kind of new to Unity. So, I've been trying to destroy set of clones on mouse click instantiated during my game play. My code for instantiation goes like this. public class inst : MonoBehaviour...
View ArticleCreating clones
Could someone help me with my problem - i got script which makes a clone of particles after casting it #pragma strict private var ray : Ray; private var hit : RaycastHit; var particles : Transform;...
View ArticleApplication.LoadLevel object clone spam
Hi, I tried DontDestroyOnLoad and Application.LoadLevel and the object is constantly created in the second level. Why is this? using UnityEngine; using System.Collections; public class BacktrackingTest...
View Articlecontrol clone objects by buttons
hi, sorry for my english. i have a gun on the left of screen. i can instantiate bullet end of its with Input.GetMouseButtonUp(0) and i destroy the bullet in 7 second. i want to move the clone bullets...
View ArticleWhen cloning, how do you make your clones keep the original properties?
Hello, I am trying to clone an object, and I want the clone to have the same velocity as the original object, but every time I try, the clone is not keeping the original velocity. How can I solve this?...
View Article