How do I spawn a buff if there is no buff on top of it?
I have a Buff Spawner that spawns Buffs at 4 different locations. Here's what I want to do: 1. Spawn a random Buff/Debuff 2. Spawn another random Buff/Debuff every 5th wave 3. Spawn the Buff/Debuff if...
View Articlehow do i get a spawn point to move to a check point in 2d?,How do I make a...
how do I get a spawn point to move to a check point in 2d? I am stuck and really need help. I am working in a 2d platformer. ,I need help figuring out how to move a spawn point to a check point. I am...
View ArticleHow can I pull an objects spawn vector
So I've created a spawn manager to load objects at random locations, and I'd like to pull that objects spawn location to essentially determine it's path (Ping Pong across the scene essentially) I can...
View ArticleTrying to use lists to check for available spawn points
I'm trying to use lists to check for available spawn points and to select the spawn point to use. To do this I made a list called EnemySpotsAvailable and a list called EnemySpotsHeld. These lists hold...
View Articlephoton Spawn 4 players in different positions
Hello Everyone .. I am building 4 players online game .. I have figured to spawn two players only in different places .. but I need to spawn another two players in another different places .. PLEASE...
View ArticleHow to add trigger system in my enemy spawner script/
public class spawner : MonoBehaviour { private int waveNumaber = 0; public int enemySpawnAmount = 0; public int enemykilled = 0; public GameObject[] spawners; public GameObject enemy; private void...
View ArticleSpawning AI cars - weighted to ahead?
EDIT: Line breaks aren't working? ---------- I'm working on a little project where I drive around a small city with a top-down but slightly angled camera view (like [GTA Chinatown Wars][1]). Cars are...
View ArticleSet spawn locations within a random initial spawn room?
Hey guys, so the deal is I have an array of rooms each has its own spawnpoint in the level. At start a random room is selected from the array. Each room also has a set of item spawn points. How do I...
View ArticleAdd prefabs randomly, endless runner
Hey, I'm making an endless runner. I made some prefabs which are pieces of the map spawning randomly ( to have a different map each game). My problem is that I can't figure out how to place the...
View Articlehow would i make a spawn point when loading a scene?
so basicly im making a mmorpg and i need spawn points, and i am getting to the point where i need to walk to the scene from the very first, i have a chat box with an input feild were i can load any...
View ArticleSpawning something if it is not within another object?
Hi everyone. I am creating a tower defense game in which the player can drag a tower from the purchase bar and then lift the left mouse button to spawn the chosen tower at the mouse position. I have...
View ArticleWhy does my code only run correctly once?
I want it to spawn balloons in a set distance between each other in rounds a set time apart. I can run the code successfully once but then the balloons spawn on top of each other and stop spacing...
View ArticleHow to choose random spawn point and spawn within its limit?
Greetings, I'm trying to have my GameManager object (wave spawner script) spawn enemies at set locations -- and at a random location inside them. I have a `public Transform[] Spawnpoints;` array in my...
View Articlespawn at specific set location/point/coordinate.
I create a game when the player hit the object, the object will spawn at specific location. my problem is the object spawn randomly and not at the specific position i want. ---------- public class...
View ArticlePlacing my GameObject on a Ground with differences in height
Hello, my Problem is that I downloaded a low poly Asset and the Ground has differences in height (for example at x=34 and z=20, y=2 and at x=50 and z=12, y=5). Now I want to spawn random Objects on the...
View ArticleI want to specify the location of spawning
i want my enemies spawn at just one of 3 areas on x axis like 0 and 2 and -2 i don't want them to spawn like -1 or 1 what should i do code im using public GameObject obstacle; private float startDelay...
View ArticleSpawn game objects from array to array of transforms
Hey guys! I need help in instantiating objects in a transform. Currently, what I want to do is when an enemy dies, it will spawn new enemies (which are in an array) in "fixed" positions (also in an...
View Article(2D) Instantiating in front with offset
Hey In front of my moving player GameObject (rigidbody2D) another GameObject shall be instantiated. But it should not collide with my player. This always means +-0.7 to +-2 units next to it. Here is my...
View ArticleHow to get the initial position of all gameobjects in an array unity
Hello! I have been trying to get the initial positions of all my gameobjects in an array, so that I can use that information to make these gameobjects return to this position after an event occurs (...
View ArticleSpawn objects around a curved, not circular, path
Hello! How can i Spawn objects around a random curved, not circular, path? So in the result it creates sort of a tunnel? Thank you! Reuven
View Article