Why does my gameobject not spawn if I don’t grab it? The other gameobjects spawn just fine even after not grabbing it, but not this certain one. The gameobjects are all constantly spawning, except the one that doesn’t respawn after not grabbing it because it’s supposed to spawn only after I collect 10 of a different gameobject(I hope you understood that). So what could be the problem? Here’s my GameObject script(this script spawns both the gameobjects I need to collect and the one that doesn’t respawn): http://pastebin.com/RuU9UrDj
Now I have a pretty good feeling that it’s defiantly the script that I posted that’s the problem. I tested it with a different spawn script and the gameobject respawn/kept spawning even after not grabbing it. I know this is pretty a vague explanation and question, so I’m sorry. Anyways I hope someone can help me see what’s the problem here.
does the code even get into
– Noob_VulcanInstantiate(bigcoin, bigspawn.transform.position, Quaternion.identity); ;I hope this the GameObject THat doesnt spawn?Bump. This is either a bug or my code is missing something. This could add some challenge to my game though.
– ExcitedMormonI feel we have something in common here, will have a look tonight and see what I can find. Or you could post the problem scripts here and I could look sooner.
– KiwasiHmm, problem scripts? Do you mean the ones that don't work correctly(not appearing on the console)? Not sure what you mean here, but the only one that doesn't seem to work correctly is the GameObject/Spawn script that's supposed to spawn the bigcoin gameobject, but it doesn't after it get's destroyed. Here it is: http://pastebin.com/RuU9UrDj To sum it up, the script makes you collect 10 of a different gameobject tagged as Item1, and after you collect 10, it spawns in the gameobject tagged as Coin(which is the one that doesn't spawn again after getting destroyed). Hope you understand.
– ExcitedMormonI can't access paste bin behind my current firewall. So I can't check out the scripts until tonight.
– Kiwasi