Hi!
I’m trying some kind of LOD system with zombies. I have a animated zombie model, that is spawned from another layer. The idea is to have a huge amount of zombies ( one single zombie does not scare anyone :eyebrowlift2: )
But to have a lot of armatures in the engine, slow down the game, so my idea was to replace de 3d model for a plane with a animated texture when the zombie is far from the camera, so in the distance you’d see a lot of zombies walking to you. This is how old school game, like doom worked. http://www.youtube.com/watch?v=yr-lQZzevwA
The animated texture is controller by a script, and everything works fine, I mean I can have a lot of animated planes with a good framerate.
I’m using “end object” “add object” to change between the animated plane and the 3d model when is near.
The problem is…
When “add object” is used to add a plane with the animated texture (controlled by a script), it works, but if I add a second plane, the animation start to not working well. It looks like the script is running from both to both planes and the animatión is not finishing before to start again. You can see how it is worse with 3, 4 …
I think the problem is that all the planes added by the “add object” have the same “controller.owner” and that’s why all the scripts are running at the same time for all the planes. And I don’t know how to solve this problem.
Maybe a solution is use the texture like a normal animated texutre, without the script, but I would like to know how to solve the problem with the script and added objects.
Thanks in advance.
P.D. blend file: https://dl.dropboxusercontent.com/u/35244856/zombi.rar
Push space to add zombies and “s” to go farther and get the LOD system start to work.
