If you apply a physics behavior to an sprite the physics works fine, but if the sprite is animated the application will crash (using cocoonjs and Android). If you apply physics to a sprite and try to move it manually(if you press a button or every tick: sprite x = x + 1) you will get crash (cocoonjs and Android).
Link to .capx file (required!):
Steps to reproduce:
1. Export the project using cocoonjs.
2. Run the exported project with CocoonJS launcher.
The application can't run. You will get black screen and crash.
Working physics with animation applied to a sprite.
Manually moving objects with physics applied to it.
Working physics using animated sprite and manually move this sprite.
I expect this to work: dl.dropboxusercontent.com/u/106334822/this%20need%20to%20work.capx
Internet Explorer: yes/no
Operating system & service pack:
Windows 8 x64
Construct 2 version:
Develop games in your browser. Powerful, performant & highly capable.
Confirmed, i had this same bug.
Thanks for the reports, but these appear to all be problems with Ludei's CocoonJS physics engine. We can't fix them directly ourselves, but I've forwarded them on to Ludei for fixing.
Note: your this%20need%20to%20work.capx example appears to be identical to the manually%20moving%20physics%20object.capx example. Is this what you intended?
Yes they are identical the only difference is that in this%20need%20to%20work.capx both sprites are with animations.
Yes! I get this too!
The error I get on cocoon console is
Wasn't sure if it was a cocoon or a c2 error.
Hi, i'm having the same issue, i've tried to export the project without minify the script and i can get to my main layout, but when i start it freeze flickering the whole screen... :S
I get an email from Ludei. They told me that they are working on this problem and will be fixed as soon as possible.
any news from ludei ? :(
Are there any workaround to prevent the crashing ?
I've been having a lot of trouble with CocoonJS as well.
Here's the error I get:
<img src="http://i.imgur.com/ZIpf06s.png" border="0" />
I'm using the physics object and I only have a few lines of code.
Am I missing something? Seems like the touch is completely broken..
Also I'm using r134, about to install an older version to test it out. Maybe it's broken because I'm using a beta.
Physics won't work in CocoonJS until Ludei release the next launcher update.
They have lot of upset people on their forum and still no info. If it would be that Apple has rejected or have issues with CocoonJSWebGL it would explain the current hiatus of Ludei. Well I hope this is not the case.
physics still does not work after launching projects via CocoonJS, all I see is the black screen...
After updating to the latest version of construct 2, I got my physics project working with cocoonjs (fixed the black screen issue) but touch does not seem to be working (im using touch.x)?
is this a confirmed fix? im encouintering the black screen launchr problem too. typical my first game was physics based!