Problem adding several lamps in the scene

I saw this article here on the site with this same problem: Adding in a lamp?
But there is no solution in it. Because the article is old, I was wondering if there is a solution today, but I’m not sure. Do you have a solution? Is it possible to add lamps to the scene without the previous one disappearing?

In normabl BGE (2.79) it is the same. It may be different in UPBGE 0.3.0+

I got add light system to work in legacy versions by adding separate light objects according to a variable number that gets self-added to every time a certain lamp object is added, this is of course costly in performance… But hey, cool mechanics over performance is more important to some.


Also, I don’t think 0.3x versions can even add lamps yet. : p
Could be well wrong. We might be able to import them though at run-time though.

Adding different lamps in the scene affects performance a lot, so I was creating a system that adds and removes the lamp over distance, but it didn’t work because of this limitation …

Dont think about adding, thinking about moving is the key here.

Add 8 lamps (older systems can only handle 8, newer can handle a lot more, so depends on what system specs is your target). Now that you have 8 lamps create a lil script, and use empties for locations, just move the lamps to the closest locations around the character. Just put unused lamps energy to 0.