Problem Description
When an instance is destroyed, and then the game state is saved, loading triggers On Destroy to misfire after the page is reloaded or newly run.
edit: btw, if you have multiple on destroy events, you can have multiple misfired events depending on how many destroyed instances there were when you saved.
Attach a Capx
https://1drv.ms/u/s!AhHSZHEulqh_ghA3H7Y-hEbKcJ1h
Description of Capx
Destroys a sprite via hitting number 2 Key.
Game state is saved via hitting F3.
user reloads the page.
Game state is loaded vis hitting F4.
The bug occurs, misfiring the on Destroy triggers.
Steps to Reproduce Bug
- hit number 2 key
- hit F3 to save
- reload page
- hit F4 load
Observed Result
on destroyed triggers are misfired (bug occurs)
Expected Result
for the triggers not to malfunction.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
vista sp2
Construct 2 Version ID
__r250