Good day, ladies and gentlemen!
I am working on a simple space game in which the player navigates an asteroid field while avoiding and shooting down mines that are chasing the player’s ship.
I have come upon a problem where the mines all simultaneously explode the moment one of them does so. I am using a Near sensor that runs my Python script when the player’s ship gets close enough.
Another problem I am having is with the ship’s bullets. When fired I also parent a lamp to the bullet (via Python, I came across the same problem when parenting the lamp ordinarily) that then follows the bullet and nicely lights up asteroids and other objects that it passes by. My problem here is that whenever I fire another bullet the lamp from the previous bullet disappears so the only bullet that actually illuminates anything is the one fired last.
How would one be able to fix these problems? Any suggestions are much appreciated.
Have a nice day.
EDIT: My problem turned out to be that my explosion mesh was too big when it spawned and as such triggered other mines if they were too close to each other. Big thanks goes to Monster for his help!