Anyone good at Javascript/CocoonJS can help?

Get help using Construct 2

Post » Fri May 10, 2013 12:16 pm

Could anyone vaguely or in detail explain what

"JavaScript Exception (Line: 33582) Tag: 'requestAnimationFrame'): TypeError: 'undefined' is not a function (evaluating 'this.body.GetLocalCenter()')"

could mean?

It's an error I'm getting from my game in CocoonJS debug, my whole game freezes and this is what it shows me in the console.. The game works fine in Chrome, so It's definitely related to CocoonJS, but at the same time, what could I be doing in Construct 2 that is causing this?

Please help!!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri May 10, 2013 1:53 pm

Are you using the latest beta by any chance? There's a known bug with animated physics objects - does that sound like it explains the issue?
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri May 10, 2013 4:01 pm

@thehen I am using the latest beta, and I have animated physics objects. God damn it, you may have just solved my problem. I'll try it out now. I love you for the help!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri May 10, 2013 4:39 pm

@thehen Yes that solved it, thank you very much. I did see those bug reports, but I didn't think much of it because my object isn't exactly animated, it's rotating! Thank you!
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sun Aug 04, 2013 2:36 am

I started getting errors, and/or the inability to start my zipfile, or even compiled/signed apk file.
Seems to have started directly after I introduced an animation.



I have the latest beta, which is a few iterations beyond the above posts.

Any tips? Or direction where I can have a programmer start looking for the problem?

Thanks Scirra Family.Squirrely12013-08-04 17:19:37
B
16
S
2
G
1
Posts: 35
Reputation: 1,033

Post » Sun Aug 04, 2013 2:45 am

I can't comment on the other issues, but I am sharing the same problem as @squirrely1 on not even being able to start my zipfile after compiling is complete. Basically the app seems to hang forever.

I am able to preview over LAN through CocoonJS, but I'm honestly not even sure I want to use Cocoon at the moment because of the inability to letterbox scale.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194


Return to How do I....?

Who is online

Users browsing this forum: armaldio, Colludium, plinkie and 18 guests