Timeline for Unity - Instantiate 2 copies at same time?? (Asteroids clone) C#
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 11, 2017 at 18:52 | comment | added | Big T Larrity | btw it all worked perfectly thanks. And i see that I just needed to instantiate it first. Now I can move on to making the thrusters and making the ship reappear across the screen when it leaves the screen. This should be fun haha you might see another post from me in a few hours lol | |
| Nov 11, 2017 at 18:45 | comment | added | Big T Larrity | yeah thanks man. i mean i used to be able to make some half decent games in unity, but Its been a long while so im just refreshing my memory more than starting from the very basics. I think i will work through some of the tutorials again though as that will surely help a lot. cheers | |
| Nov 11, 2017 at 16:39 | comment | added | starikcetin | @SuperMegaBroBro Your approach to instantiation is a bit off. I suggest trying to grasp the basics before moving on to more advanced stuff. Unity documentation and tutorials may help you greatly. Best of luck. | |
| Nov 11, 2017 at 15:40 | comment | added | Big T Larrity | hi mate, what I was trying to say was . was the problem that I was Instantiating the same copy of asteroidPrefab? and if so, would a solution be to create two variables called newAsteroid1 and newAsteroid2 and then Instantiate them both at the StartI() and then I can just re-set them to the position etc upon Laser collision? - its hard to explain so I will attempt it and then edit the code but I cant get back to it for about another hour . | |
| Nov 11, 2017 at 11:22 | comment | added | starikcetin | @SuperMegaBroBro I can't say I understand that. May you elaborate? | |
| Nov 11, 2017 at 1:02 | comment | added | Big T Larrity | Just to make sure i understand.... Would this be ok: private GameObject newAsteroid1, newAsteroid2; (as declarations) , then instead of using tempAsteroid just use them directly like that?? | |
| Nov 11, 2017 at 1:01 | vote | accept | Big T Larrity | ||
| Nov 11, 2017 at 15:34 | |||||
| Nov 11, 2017 at 1:00 | comment | added | Big T Larrity | thank you so much guys. So I just need to make a container for each of the two possible new objects, and instantiate it prior to setting any parameters such as position, rotation etc. I'll give this a try now. Thanks again. | |
| Nov 10, 2017 at 23:44 | history | edited | starikcetin | CC BY-SA 3.0 |
added 813 characters in body
|
| Nov 10, 2017 at 23:38 | history | edited | starikcetin | CC BY-SA 3.0 |
added 813 characters in body
|
| Nov 10, 2017 at 23:23 | comment | added | The Mattbat999 | I was just about to put up an answer that was practically the same thing. | |
| Nov 10, 2017 at 23:21 | history | answered | starikcetin | CC BY-SA 3.0 |