Create a streched cube between any two selected points.
I need a script that is allows me to create a cube between two specified points. The desired code would allow me to be in game as a first person controller and create a cube from selecting two points....
View ArticleHow to move one object's position to another in unity? (c#)
How do you move one object's position to another in unity? I need to make my player object move to the spawn point when he dies. Here is the code I am using: this.transform.position =...
View ArticleSpawn object in "set random" location
Hi guys :) hopefully someone can help me :) im trying to make a game where balls come from the right of the screen moving left. i want them to spawn off screen and start moving left. (thats not the...
View ArticleAccessing different spawn points
So I have my spawning code for the player working how I need it to, but my problem is I need to be able to access several different spawn points across the game in different scenes, and my code only...
View ArticleMaking a spawn point
I'm making a level where I have 2 gorge that I have to cross across in order to proceed further on in to the level. The first gorge has a series of rocks to jump across to reach the other side, and the...
View ArticleTrying to get a prefab to pop up at various spawn points
Hi. I'm completely new to Unity and sort of making it up as I go along. I've managed to stumble through all the problems I've had so far (mostly thanks to this forum), but this one has me completely...
View ArticleProblem with instantiate script
Hello! I've got a problem with my spawn script which i just cant figure out. The point of the script is to spawn platforms aligned perfectly next to each other, without any gap between. The...
View Articlespawn 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 Article