Link to .capx file (required!):
dl.dropboxusercontent.com/u/5426011/bug/bug_creation_from_destructor.capx
Steps to reproduce:
1. Add a sprite and add an "on destroyed" event.
2. In that event have another object get created.
3. Then make an event to change or restart the layout.
Observed result:
When the layout changes the object created in the "on destroyed" event still exists.
Expected result:
I would expect no objects to survive a layout change unless they were global.
Browsers affected:
Chrome: untested
Firefox: yes
Internet Explorer: untested
Operating system & service pack: Vista sp2
Construct 2 version: 149