Physics behavior bug when creating objects

0 favourites
  • 6 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Problem Description

    Physics behavior bug / crash when creating objects on the fly

    Attach a Capx

    Description of Capx

    Simple layout with physic objects. Left mouse click to spawn coins high rate.

    Steps to Reproduce Bug

    Just spawn some objects with left mouse click, (hundreds of them, it's fast) and the crash will happen.

    Observed Result

    App crash with physics behavior related debug data.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Safari: (YES)
    • NodeWebkit export: (YES)

    Operating System and Service Pack

    Windows 7 SP 1

    Construct 2 Version ID

    r208 beta

  • Thanks for reopening, saw it a little late that you aleready have done it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    so here is my approach, with the impulse, but its the same with just 1 event pw: demo

    Confirmed for

    Affected Browsers

    Chrome: (YES)

    FireFox: (YES)

    Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 8.1

  • asm.js physics uses a fixed size memory buffer for maximum performance. Currently it's set at 16mb. I've increased it to 32mb for the next build so you can go twice as far before you get this error, but I can't just increase it to say 512mb because AFAIK it always uses that much memory, so we need to balance the memory overhead with the number of objects you can create.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, thanks for the fix and explanations. In some projects the bug is still here when there's only few objects though.

    After testing, the problem is not solved. I still get bugs with physic objects created on the fly.

  • I have the same problem !

    Does anyone have the solution?

  • Hello Reginaldoev,

    I don't know if the problem is solved, but I remember that since I switched to the external physics plugin Chipmunk, which is better in some ways. You have more flexible collision conditions filtering for example, and collision groups with ids and hexadecimal. And that solved many obscur problems I had with built in physics behavior, box2D or asm.js.

    So I encourage you to give a try.

    Best regards, and happy Christmas !

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