spawn objects in random locations, check if location already taken
Hi! you'll see, i have this scripts that i made, i have 8 letters i wanna spawn in 11 possible spots, i want each letter to be assign to one unique location, but when i run the script, some letters are...
View ArticleHOW TO MOVE A OBJECT TO ANOTHER OBJECT SMOOTHLY NOT INSTANTLY?
HI GUYS! ok I want to know how to move an object to another object smoothly, as if im throwing it the other object. Say I have Object A and Object B. I want, if I click Object B, then Object A will...
View ArticleTeleporting the player between scenes to a particular spawn point [c#]
So I'm basically creating a simple maze made out of different rooms. There are several doors in each room that all lead to another specific door in another room. For example, this is the script on the...
View Article2d Obstacle spawner with fixed distance between objects
I have a ball moving forward, and so far a single cube controlled by the mouse, I want to have at least 5 cubes on screen once the game starts with a certain range of space between them and have them...
View ArticleFlip sprites in enemy spawner
I am so close to figuring this out. A random running player is selected from the array and placed in a random spawn location (also obtained from an array). If the player spawns on the right he faces...
View ArticleI need help with my spawning system(SOLVED)
I am trying to make a spawning system based on time and exact positions, i made something but the problem that i have is that when i break 2 or more game objects at the same time, or even in quick...
View ArticleHi! :) i'm just newbie in Unity,
i would like to ask on how do i able to make a random positioning of my prefabs without repeating?
View ArticleSpawn player prefab on sockets c#
i have try to implement the client server to my game the server and client work perfect now i finish my player prefab and i try to spawn the player we is a server and wen is a client i have no erros...
View ArticleCreate GameObject On Click Not Working
Can you guys please help with my code. I have made this code which is made so that when the menu button on the VIVE is clicked, a new game object is spawned. For some reason, even though there are no...
View ArticleHow do I make the enemies continue spawning?
When I press play the spawner only spawns 1 enemy and thats it. How do I make it continuous? **Here's my Spawner script :** using System.Collections; using System.Collections.Generic; using...
View ArticleSpawn system not working correctly
I try to spawn one or two obstacle at the same time given the position rightpos, midpos, and leftpos but i keep getting the spawn position to only rightpos and midpos. void Start () { rightpos = new...
View ArticleX,Y,Z coordinates 0,0,0 do not match for hand created vs code spawned objects
![alt text][1] I generate an object at 0,0,0 in unity manually and it now appears as the map surface below ("Ground") and I also generate one of a number of blue cube objects programmatically, one of...
View Articlehow to limit a trigger frequency?
Sorry for my English because it was written in google translator. I'm trying to do programming that might limit the spawn of the enemy, but I do not know how to do it. public GameObject Inimigo; public...
View ArticleMulti coulored Lighting and acid physics+ spawnpoints
Thaks guys for answering my last question by the way I'm not going to compleatly copy of the idea of limbo just take elements from the game. the game is About an insect and it's mysterious journey that...
View Article"MissingMethodException: Method not found:" (Javascript)
I am trying to make a button activated spawn point using "Spawner - Free 1.7" and I am having trouble. I am modifying the code of a lift button already implemented in my scene. var Spawner :...
View ArticleSpawn after every 5 seconds
Hey Guys, Johnny here :D I was just wondering if anyone knew how to spawn a gameobject after every 5 seconds. I'm creating a survival game where an enemy is spawned every 5 seconds. Is anyone able to...
View ArticleCan't get objects from an array instantiate at spawn points in an array
I'm trying to spawn objects from an array to spawn points in another array. The objects chosen to be spawned must be randomly chosen, but not the spawn points. I need the code to go through each spawn...
View ArticleTwo specific transform values instead of random int? Even distribution...
Hi community I am in need of a little assistance. I'm relatively new to JS (or any other language for that matter and have hit a snag. I have managed to cobble together a script for objects in my game...
View ArticleProblem creating a 2D scroller shooting game
Hello everyone , I have a problem with my 2D scroller shooting game (like metal slug), basically I'm not able to create a script to shoot in front of the player . I've created one , but the bullet...
View ArticleSpawn multiple enemies from spawn point
Hello, I have a simple spawn script but when I added the var enemy2 : Game Object, it does not want to spawn enemy 2. It will only spawn enemy 1. var Enemy : GameObject; var Enemy2 : GameObject; var...
View Article