Black screen when cocoon build contains physics

0 favourites
  • 3 posts
From the Asset Store
Is a circular loading screen with code ready to use. No Animation.
  • If my project contains Box2D Physics and I do a cocoon build for my Ipad/Iphone the screen is just black when the zip is executed. The log shows this error:

    JavaScript Exception ( File 'c2runtime.js' Tag: 'script'): Exception calling 'IDTK_SRV_BOX2D' extension with 'setContactFilter' funtionName: The argument 0 ('contactFilterFunction') type is not valid. Expected a 'Function' type argument but received a Float64 type.

    Any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wish someone would help you out with that, becos I also am having trouble exporting CocoonJS with Physics behavior, when i delete the Physics behavior then it exports fine and works on Android phone no worries.. But i can't get it exporting right with physics.

  • Well I wish I could offer better support. But right now the big problem is Ludie(CJS team) doesn't effectivly communicate changes to the code. This often leaves Ahsley having to muddle through the Physics errors through different releases.

    Report your bugs with a super simple capx(makre sure to see if the bug is reported) and hope that the next 1/2 C2 beta releases fix the problem.

    The other solution in the mean time. Is to not use Physics. Actually in fact my game wiched used physics only for flight I had to remove.

    Also Physics is cool but sometimes Physics is often over used. How much is your physics needed. Often if you need to simulate accurate falling blocks is the the only time. If your using physics just make objects fall easier then you can work around that. Both Platformer and Bullet offer Gravity and the ability set Gravity levels.

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