R129 Physics and CocoonJS

Bugs will be moved here once resolved.

Post » Thu May 09, 2013 9:38 am

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!):
https://dl.dropboxusercontent.com/u/106334822/animated%20object.capx
https://dl.dropboxusercontent.com/u/106334822/manually%20moving%20physics%20object.capx
https://dl.dropboxusercontent.com/u/106334822/this%20need%20to%20work.capx

Steps to reproduce:
1. Export the project using cocoonjs.
2. Run the exported project with CocoonJS launcher.

Observed result:
The application can't run. You will get black screen and crash.

Expected result:
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: https://dl.dropboxusercontent.com/u/106334822/this%20need%20to%20work.capx

Browsers affected:
Chrome: yes/no
Firefox: yes/no
Internet Explorer: yes/no

Operating system & service pack:
Windows 8 x64

Construct 2 version:
R129
    blagopenev2013-05-09 09:43:10
B
19
S
6
G
1
Posts: 18
Reputation: 2,745

Post » Thu May 09, 2013 10:36 am

Confirmed, i had this same bug.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Thu May 09, 2013 2:48 pm

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?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Thu May 09, 2013 2:54 pm

Yes they are identical the only difference is that in this%20need%20to%20work.capx both sprites are with animations.
B
19
S
6
G
1
Posts: 18
Reputation: 2,745

Post » Wed May 15, 2013 1:47 pm

Yes! I get this too!

The error I get on cocoon console is

JavaScript Exception (Line: 30507 File: '1553018312' Tag: 'requestAnimationFrame'): TypeError' Result of expression 'this.body.SetAwake' [undefined] is not a function.

Wasn't sure if it was a cocoon or a c2 error.
bon4ire2013-05-15 13:47:45
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Wed May 15, 2013 4:02 pm

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
B
7
S
2
Posts: 6
Reputation: 1,337

Post » Wed May 15, 2013 11:24 pm

I get an email from Ludei. They told me that they are working on this problem and will be fixed as soon as possible.
B
19
S
6
G
1
Posts: 18
Reputation: 2,745

Post » Fri Jun 14, 2013 2:08 pm

any news from @ludei ? :(

Are there any workaround to prevent the crashing ? Oron2013-06-14 14:20:08
B
4
Posts: 12
Reputation: 649

Post » Tue Jun 18, 2013 6:30 am

I've been having a lot of trouble with CocoonJS as well.

Here's the error I get:


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.
B
106
S
35
G
37
Posts: 796
Reputation: 25,211

Post » Tue Jun 18, 2013 5:48 pm

Physics won't work in CocoonJS until Ludei release the next launcher update.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Next

Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests