SOLVED: Assertion failure: Physics polygon separation

Get help using Construct 2

Post » Fri May 15, 2015 12:14 pm

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:

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:
[email protected]://localhost:51000/preview_prelude.js:16:10
[email protected]://localhost:51000/Physics_behavior.js:982:2
[email protected]://localhost:51000/Physics_behavior.js:1703:19
[email protected]://localhost:51000/Physics_behavior.js:1332:3
[email protected]://localhost:51000/preview.js:3206:5
[email protected]://localhost:51000/layout.js:1406:12
[email protected]://localhost:51000/layout.js:219:4
[email protected]://localhost:51000/preview.js:1880:4
[email protected]://localhost:51000/preview.js:1735:4
[email protected]://localhost:51000/preview.js:711:3
[email protected]://localhost:51000/preview.js:1574:3
Runtime.prototype.requestProjectData/[email protected]://localhost:51000/preview.js:396:6
[email protected]://localhost:51000/preview_prelude.js:26:4
[email protected]://localhost:51000/Physics_behavior.js:982:2
[email protected]://localhost:51000/Physics_behavior.js:1703:19
[email protected]://localhost:51000/Physics_behavior.js:1332:3
[email protected]://localhost:51000/preview.js:3206:5
Layer.prototype.[email protected]://localhost:51000/layout.js:1406:12
[email protected]://localhost:51000/layout.js:219:4
[email protected]://localhost:51000/preview.js:1880:4
[email protected]://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
Last edited by zeigewas on Fri May 15, 2015 1:21 pm, edited 1 time in total.
B
4
Posts: 12
Reputation: 224

Post » Fri May 15, 2015 12:51 pm

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.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Fri May 15, 2015 1:00 pm

Hello,
thank you for the fast reply.

Here is the download file: https://www.dropbox.com/s/36jznl1aqh9cu ... .capx?dl=0
B
4
Posts: 12
Reputation: 224

Post » Fri May 15, 2015 1:12 pm

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.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456

Post » Fri May 15, 2015 1:20 pm

That helps me a lot... Thank you :)
B
4
Posts: 12
Reputation: 224

Post » Fri May 15, 2015 1:22 pm

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.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,387
Reputation: 58,456


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, senecaa and 15 guests