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
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
on destroyed triggers are misfired (bug occurs)
for the triggers not to malfunction.
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Construct 2 Version ID