Quantcast
Channel: Questions in topic: "random spawn"
Browsing all 125 articles
Browse latest View live

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


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


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

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

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


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

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

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


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


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

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

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

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


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

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


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

random swap the block (block will have color)

![alt text][1] [1]: /storage/temp/108310-block.png I have 5 blocks in my 2d game and a player(blue color) i want random(only four color) color in my 5 blocks at one time when spawned (color must be...

View Article


i want random color in my five block but not same color how i do that

i want random colour in my fuve block but not same colour how i do that and i want to compare that color with my player if color is same(player and block) then it will go if not then gameover![alt...

View Article

Random Map generation like Temple run,Random Map generation like Temple Run.

Hello Guys, I am currently working on a 3d endless runner game and I am stuck at random generation of track. I am able to generate straight tracks like subway surfers, but i am not able to create...

View Article

Random Item Appear (JavaScript), 아이템 랜덤 등장 (자바스크립트)

**I want to write JavaScript to make the items(3D Object=cube) appear randomly. (The section is fixed but the location is random)** If this is a problem you can solve, please help me. I am sorry that...

View Article
Browsing all 125 articles
Browse latest View live


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