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

2D infinite runner obstacle generation?

Hi Unity, I am developing a game that has 2 types of obstacles: One that you have to jump over and one that you have to slide under. How could i generate them randomly without them generating on top of...

View Article


randomly spawn objects and hide after hit

hi guys, hope you'll be able to help me out. I'm currently trying to implement a superpower trigger to my game (little mushroom). I want to spawn it randomly on the x and y axis. Having a sidescroller...

View Article


how to check if a random location has spawn an object it will not spwan again...

void CreateHeliA1(){ for (int i =0; i

View Article

How do I spawn a gameobject at a random positing inside pov?

Hey, I am working on a game where you tap a square and it changes position. But, I have a problem where the square jumps to a random position and instantly jumps back. I also want the square to be...

View Article

Spawn Prefab at one of 5 location cubes

Hey guys, I have a issue. Im making a game where the escape pod is the ending and I have 5 cubes on the map placed around, I need it so one of those 5 cubes will spawn a prefab which will be the...

View Article


[C#] How do I randomly pick between 3 specific numbers?

Is it possible to CHOOSE a random number between 3 numbers I have set? I want to randomly choose between -3, 0, 3 but only those exact three numbers. I want my enemies to randomly spawn in one of the...

View Article

How to check collisions of static objects when spawned at Random?

Hi! For my project I am spawning static rooms at random. They should not be influenced by gravity, or move at all once they are placed for that matter. In the class room only the followingis relevant:...

View Article

Random obstacles spawn in 2D side endless runner game ?

Hello there. I am new to Unity. I have developed scrolling backgrounds, floor, animation jump, slide and other things. The only thing left for now is an algorithm to spawn random objects, obstacles (I...

View Article


How to move objects randomly spawned to other random locations

Hi i have a script which spawns objects randomly outside the viewport. Now i want the objects spawned on the right side to start moving to a random position on the left side of the outside of viewport....

View Article


Random platform Generator

Hello, Im trying to create a random platform generator on which a character is supposed to jump higher and higher up on. but whenever i generate my map some platforms are further away or too close for...

View Article

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 Article

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
Browsing all 125 articles
Browse latest View live