Sometimes ago I found here a nice example of endless generation.
And then i wanted to remake it for my tasks, but got a problem. Now, this example works incorrect(
Here it is- i think some professionals here can make it work correct.
There is a sprite with 2 animations. If animation = 0, sprite must be "live", if animation = 1 sprite must be destroyed. But when sprites destroyed, the "regeneration" system begins work incorrect.
Please, rebuild it correctly(
/also, sorry for my rude english))/