So, I'm chasing a bug for 2 days, and now I just found the guilty event.
So I'm not asking for help, just to understand :)
After a few layout restarts, objects were disappearing randomly. No crash, just like a "limit" or a leak happened, and bam, random objects were messed up.
In the (so great!)debbuger:
* 3 or 4 layout restart: 750 objects.
* after that: 500, 200, THEN, negative values in the debugger, like -1000 objects, then -12000 etc...
So, here is why my game went crazy.
Now I know I made a mistake here, but I don't understand what was wrong with this.
<img src="http://tof.canardpc.com/view/5d502514-22b9-4642-843a-f94fcd3a22a0.jpg" border="0" />
If my block is destroyed, then it generates 2 particles.
Why so much side effects? Is it dangerous to use the "on destroyed" condition?
Thanks for yout time.