0 Favourites

SOLVED: Assertion failure: Physics polygon separation

  • Hello,

    at the moment I started to make my first game with Construct 2.

    So I added some Objects and make some test.

    But now when I start the game, following message appears:

    [quote:30lbtt8s]

    Assertion failure: Physics polygon separation resulted in no polys. Make sure all your collision masks for objects with the Physics behavior are valid and don't have any overlapping lines.

    Stack trace:

    assert2http://localhost:51000/preview_prelude.js:16:10

    cr.b2Separator.Separatehttp://localhost:51000/Physics_behavior.js:982:2

    behinstProto.createBodyhttp://localhost:51000/Physics_behavior.js:1703:19

    behinstProto.postCreatehttp://localhost:51000/Physics_behavior.js:1332:3

    Runtime.prototype.createInstanceFromInithttp://localhost:51000/preview.js:3206:5

    Layer.prototype.createInitialInstanceshttp://localhost:51000/layout.js:1406:12

    Layout.prototype.startRunninghttp://localhost:51000/layout.js:219:4

    Runtime.prototype.go_loading_finishedhttp://localhost:51000/preview.js:1880:4

    Runtime.prototype.gohttp://localhost:51000/preview.js:1735:4

    Runtime.prototype.initRendererAndLoaderhttp://localhost:51000/preview.js:711:3

    Runtime.prototype.loadProjecthttp://localhost:51000/preview.js:1574:3

    Runtime.prototype.requestProjectData/xhr.onloadhttp://localhost:51000/preview.js:396:6

    assert2http://localhost:51000/preview_prelude.js:26:4

    cr.b2Separator.Separatehttp://localhost:51000/Physics_behavior.js:982:2

    behinstProto.createBodyhttp://localhost:51000/Physics_behavior.js:1703:19

    behinstProto.postCreatehttp://localhost:51000/Physics_behavior.js:1332:3

    Runtime.prototype.createInstanceFromInithttp://localhost:51000/preview.js:3206:5

    Layer.prototype.createInitialInstanceshttp://localhost:51000/layout.js:1406:12

    Layout.prototype.startRunninghttp://localhost:51000/layout.js:219:4

    Runtime.prototype.go_loading_finishedhttp://localhost:51000/preview.js:1880:4

    Runtime.prototype.gohttp://localhost:51000/preview.js:1735:4

    Runtime.prototype.go/</<http://localhost:51000/preview.js:1816:55

    Subsequent failures will now be logged to the console.

    Can someone helps me where my failure is?

    Hope to hear from someone sone,

    Simon

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • What are the objects collision polygons like?

    It's almost impossible to help from just a message. It helps greatly if a .capx with the error happening is supplied.

  • Hello,

    thank you for the fast reply.

    Here is the download file: https://www.dropbox.com/s/36jznl1aqh9cu ... .capx?dl=0

  • Some of the collision polygons on your objects are all over the place.

    Primarily, you might want to take a moment to go through your objects and make sure all the collision polygons are as precise as possible and don't overlap.

    If that doesn't clear the error, create a new .capx and copy and paste objects one at a time and test. At some point the error will through and you'll have you're culprit.

  • That helps me a lot... Thank you

  • I think it may just be the pieceleft, pieceright and umbrella. After fixing the collision polygons on those three, the .capx runs without an error.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)