How to generate random clone
Hi, Im new to unity and I really need some help, my project is to click by mouse any where in the screen and it pop up a new clone of the original GameObject, so if some one can help me with a full...
View ArticleRandom Spawner not working properly
Okay basically my problem is that i want to be able to randomly spawn objects from the side, like flappybirds where pipes spawn at the side. For some reason the Original obstacle which the spawning...
View Articlei am working on a project . it is a quiz base 2D game . the problem is that i...
using UnityEngine; using System.Collections; using System.Collections.Generic; using Assets; public class NewBehaviourScript: MonoBehaviour { public List Questions; public bool AddToList; // Use this...
View ArticleBatching for randomly generated level
I have a fairly straightforward game level that is generated at runtime using a selection of prefabs. The problem? It seems that because they're generated at runtime, none of them are able to be...
View Articlerandomly spawning objects onto a procedurally generated landscape?
i want to know how to randomly instantiate objects such as trees and animals onto procedurally generated terrains and how to ensure that the height value of those objects matches up with the height of...
View Articlemake enemy fire at randomly times?
I want the bullets to fire /instantiate at random times from .2 seconds up to 1.3 seconds each time so 1 bullet at random times so here is c script; below public class BulletFireScript : MonoBehaviour...
View ArticleHow to randomly instantiate an object at specific locations?
I have a room where I am trying to randomly instantiate portals on the walls of the room at specific points. So far, I have been able to destroy and randomly instantiate portal prefabs but it __only...
View ArticleSpawning Random GameObjects at Random Prefab Locations
Hi, I'm trying to create a basic bubble shooter like game, with randomly generated levels. What would be the best way to spawn one of three colored bubble at a defined location? At the moment i have...
View Articlerandom object spawn in random spawner
so, i got 5 boxes as spawners for spawn 5 sound (just say A-E box). i want to make the first random to randomize the boxes. when which box was chosen, randomize again for another boxes till 4 times but...
View ArticleGet value from random
Hi I have this code now. When another GameObject spawns i would want to delete/hide the previous one and i would like to know which GameObject did it spawned. I am still a noob but I am trying :D...
View ArticleWeighted loot decision from a pre selected pool
Hey guys. I am doing a xml based loot table system for my framework im making . I am trying to do weighted loot drops using these tables. I basically have a list of items correctly loading and spawning...
View ArticleInstantiating object randomly withing the boundaries of an object.
http://prntscr.com/fi8odo Im trying to spawn an object called Asteroid in a random location within the boundaries of the green area with an interval. I can't figure out what i'm supposed to write in...
View ArticleRandom spawn Gameobject in area
Hi all, i was thought to how make random spawner , i want create srvival game but the problem how can i spawn animals and enemys in randomly position in area , thanks
View ArticleHow to spawn an object continually while floating vertically like a bubble
For example a bubble floating vertically is spawned to many more bubbles created to also move vertically. How do i make it happen so when i bust a bubble more bubbles would be created again and again.
View ArticleHow to spawn objects in a given area ?
I want to spawn objects on a road but at some point my road have to ways ... how to spawn on that road ? For example i'm on C road and it splits in two : A_road and B_road if i take A_road ..how to get...
View ArticleEcosystem generator script generating everything in the same place
Hello, it seems that my ecosystem generator script is "randomly" spawning all of the game objects in about three different places, even though the coordinates are "randomized" every time an object is...
View ArticleInstantiate a minimum of gameObject (instantiate un nombre minimum de...
hi everybody, i'm a begginer and i tried to spawn item at random spots. but i need to spawn a minimum of gameObject, like 7. actually, it spawns a random number of gameObject. here is my code to spawn...
View ArticleSpawning enemies javascript
I have enemies spawning randomly in few positions. My problem is that sometimes when you kill one of them, another spawns in exactly same position without any delay at all, so when you think you have...
View ArticleSpawn random prefabs with specific tag and in a specific location.
I have a camera that is in 0 x and y axis and is moving forward to the z axis by itself with a script. I made some prefabs of some models and tagged them in different groups (e.g. "Group1", "Group2",...
View ArticleDetect if an object will collide if it moves to a position
Hi, I am trying to create a randomly generated level where i am stuck on stopping objects from overlapping. I am trying to detect if an object is in the space that the new object is being positioned. I...
View Article