Problem Description
When main object reaches finish line, click to restart level causes error.
Attach a Capx
https://dl.dropboxusercontent.com/u/251 ... error.capx
Description of Capx
ball moves left right using left/right arrow keys based on physics movements.
Steps to Reproduce Bug
- press right key
- go past the sign on right
- click "try again"
Observed Result
Javascript error!
abort() at Error: 0
at c (http://localhost:50000/Physics_behavior.js:7:15)
at fb (http://localhost:50000/Physics_behavior.js:31:51)
at ua (http://localhost:50000/Physics_behavior.js:417:45)
at gI (http://localhost:50000/Physics_behavior.js:196:73506)
at ry (http://localhost:50000/Physics_behavior.js:192:84949)
at Gh (http://localhost:50000/Physics_behavior.js:184:47109)
at F.prototype.DestroyJoint (http://localhost:50000/Physics_behavior.js:669:281)
at behinstProto.onInstanceDestroyed (http://localhost:50000/Physics_behavior.js:1449:5)
at myDestroyCallback (http://localhost:50000/Physics_behavior.js:1321:14)
at Runtime.prototype.ClearDeathRowForSingleInstance (http://localhost:50000/preview.js:2773:4)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
http://localhost:50000/Physics_behavior.js, line 7 (col 15)
Expected Result
It should restart the layout.
Affected Browsers
- Chrome: YES
- FireFox: Unsure.
- Internet Explorer: YES
Operating System and Service Pack
Tested using both Windows 8.1 Pro and Mac OSX 10.10.2
Construct 2 Version ID
2 r 201
Additional Notes
This capx used to work without error on previous versions of Construct 2.
I think this is related to "Disable Physics" for the ball. If you toggle disable "DIsable physics" on the ball event, it will work.