Link to .capx file (required!):
dl.dropboxusercontent.com/u/5426011/bug/bug_negative_objectcount.capx
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.
Observed result:
After the capx restarts the layout about 4 times the objectcount will be negative.
Expected result:
It should never go below 0.
A few more observations about the bug
It only occurs if the sprite is not on layer 0.
Browsers affected:
Chrome: untested
Firefox: yes
Internet Explorer: untested
Operating system & service pack: Vista sp2
Construct 2 version: 149