I have a script that adds an object at a random choice of predefined coordinates. The script works just fine, but as with the other objects that are being added by the empty that contains this script, another instance of the object is created in the same place as the first enemy and health objects. I can't find anywhere in my code where it says to add these objects from the second layer. My question is how can I either make the first instances of these objects automatically delete themselves, or, make the objects not appear in the first place. Here is the .blend (to see the problem, view from the top middle of the map. Thanks!

  • 5
    $\begingroup$ It is hard to tell what your problem is in this specific case based on the details given. Please upload your blend file using a service such as blend-exchange.giantcowfilms.com $\endgroup$ – X-27 is done with the network Apr 1 '15 at 22:06
  • $\begingroup$ Well I was going to say that. $\endgroup$ – Scalia Apr 2 '15 at 2:46
  • $\begingroup$ This is sooo confusing. $\endgroup$ – Scalia Apr 2 '15 at 2:46
  • 1
    $\begingroup$ @Anson there are no doubles in the file , it creates one object at a time ? $\endgroup$ – Chebhou Apr 4 '15 at 1:33
  • $\begingroup$ @Chebhou No, there are no duplicate objects, the enemies are created one every second, and the icosphere object is supposed to be created only once, with an "Always">Tap sensor. The health object is created every 30 seconds or so. $\endgroup$ – Anson Savage Apr 4 '15 at 4:32

I figured out the problem. I just handled the problem locally in the Icosphere rather than controlling it with the Empty. Thanks!


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.