Link to .capx file (required!):
Steps to reproduce:
1. Create a project and add a second layer.
2. Add a sprite and a particle object to layer 1.
3. Make the particle object "one shot" and make it's timeout 0.5.
4. Add two events:
every 1 second -> got layout 1
Sprite: on destroyed -> Sprite spawn particles on layer 0
5. Run in debugger.
After the capx restarts the layout about 4 times the objectcount will be negative.
It should never go below 0.
A few more observations about the bug
It only occurs if the sprite is not on layer 0.
Internet Explorer: untested
Operating system & service pack: Vista sp2
Construct 2 version: 149
I took another look at this and it was tricky, but I eventually figured out what was wrong and got it fixed. Better late than never!
Develop games in your browser. Powerful, performant & highly capable.