AndroidをUSB Debug(Remote Device at Chrome)可能にしてtraceすると以下のerror messageが出ています。
シーン1で以下のエラーがあり、
[Intervention] Ignored attempt to cancel a touchstart event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
次にシーン2に切り替わった直後に、以下のエラーがあります。
Uncaught TypeError: Module.getCache is not a function
at eval (eval at O (box2d.js:8), :1:80)
at _emscripten_asm_const_int (box2d.js:172)
at sw (box2d.js:190)
at Qy (box2d.js:186)
at yy (box2d.js:186)
at Hh (box2d.js:182)
at F.Step (box2d.js:667)
at gdjs.Physics2SharedData.step (physics2runtimebehavior.js:94)
at gdjs.Physics2RuntimeBehavior.doStepPreEvents (physics2runtimebehavior.js:548)
at gdjs.Physics2RuntimeBehavior.gdjs.RuntimeBehavior.stepPreEvents (runtimebehavior.js:56)
at gdjs.TiledSpriteRuntimeObject.gdjs.RuntimeObject.stepBehaviorsPreEvents (runtimeobject.js:935)
at gdjs.RuntimeScene._updateObjectsPreEvents (runtimescene.js:464)
at gdjs.RuntimeScene.renderAndStep (runtimescene.js:274)
at gdjs.SceneStack.step (scenestack.js:36)
at runtimegame.js:471
at gameLoop (runtimegame-pixi-renderer.js:370)
When deploying “Ragdoll” using Physics2 in the example to fb instant games, the same situation occurred (drawing stopped and did not work with the same error).
I tried the “Physics” of the Example game to fb instant games in GDevelop4, but again the same error
“Uncaught TypeError: Module.getCache is not a function” appeared.
Is’nt work GDs Physics Game on fb instant games because of GD bug?
please give me advice.
I fixed the issue for next version
Unfortunately there was a conflict between instant games and the physics engine.
If you can’t wait for next version, you can:
Export your game as a facebook instant game zip.
Extract the zip in a folder
Replace the file Extensions/Physics2Behavior/box2d.js by the new one that you can download here.
Compress again all the files in a single zip. Be sure that the index.html is at the root of your zip (there must NOT be a folder - Facebook Instant Games won’t accept it)
Let me know if that works for you
Next version will have this issue solved. I’ll upload it as soon as I can.