Problem Description
When restarting a layout or changing layouts a javascript error appears. This only happens on certain layouts, however each layout shares the exact same objects/event sheets.
Attach a Capx
https://www.dropbox.com/s/morcg7l2088x1sg/BugReport.capx?dl=0
Description of Capx
There are two layouts, one where the bug appears and one where it does not. Both layouts contain a moveable sprite and a grey box which triggers a layout change. Press R to restart the layout. Move the player to the grey box to go to next layout.
Steps to Reproduce Bug
- Preview "Bugged Layout"
- Press R to restart layout OR move sprite to grey box to go to next layout
- Error pops up
Observed Result
Javascript Error pops up in browsers, NW.js crashes
Expected Result
On Press R layout should restart. On collision with grey box, next layout should load.
On the "not bugged" layout, pressing R restarts the layout as intended.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Win 7 Prof 64-bit Service Pack 1 (6.1, Build 7601)
Construct 2 Version ID
Release 200 (64-bit)