Can someone figure out what could be wrong?

Get help using Construct 2

Post » Tue Nov 10, 2015 11:19 pm

Hi,

My game is complicated, but to describe the problem, assume a Air Hockey type game, which also have a 2 player mode: Screen split in halves, where both players can control their Paddles on each side of the screen using Drag and Drop behavior.

I have also used Has Nth Touch functions to work with 'specific' players' Touches and Releases during the game.

It works perfectly fine during the preview (on any browser), and also via preview over Wifi on my Android device. I can control both players with two hands independently.

Problem is, when I compile, export (via CocoonJS Ludei exporter) and run it on my device, it no longer respond to any touch! The paddles do not get dragged, absolutely no response to any touch anywhere. Although the game runs fine otherwise, physics behaviors are working, only Touch has no response only in that two player mode.

Please help me figure out, what could be the problem.
Thanks!
B
10
S
2
Posts: 109
Reputation: 982

Post » Wed Nov 11, 2015 7:09 pm

Someone please help!
B
10
S
2
Posts: 109
Reputation: 982

Post » Wed Nov 11, 2015 7:12 pm

What error messages do you get when running the game in the cocoonjs app from a zip? Assuming it represents cocoonio compilation.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Wed Nov 11, 2015 9:03 pm

you mean, in the CocoonJS Launcher app?
Last edited by Hasan999 on Wed Nov 11, 2015 9:05 pm, edited 2 times in total.
B
10
S
2
Posts: 109
Reputation: 982

Post » Wed Nov 11, 2015 9:03 pm

Colludium wrote:What error messages do you get when running the game in the cocoonjs app from a zip? Assuming it represents cocoonio compilation.


No error at all. I tried the Launcher app, and viewed Errors, there are none!

It's only that the Touch does not do anything after compilation, whereas, it works fine in Preview on Chrome, and Preview over Wifi on Device.

Really confused!
B
10
S
2
Posts: 109
Reputation: 982

Post » Wed Nov 11, 2015 9:14 pm

If it works on the Ludei launcher app but not after compilation then it sounds like it's probably a bug with cocoon.io... Your best bet might be to contact them directly; they'll probably ask for a copy of your project to see what's going wrong. It's been a long time since I used cocoon(js not io) and they typically took a couple of days to answer emails, but I'm sure they'll be interested in fixing their product. Out of interest, do your previews work in chrome browser on your mobile?
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484

Post » Wed Nov 11, 2015 9:24 pm

Colludium wrote:If it works on the Ludei launcher app but not after compilation then it sounds like it's probably a bug with cocoon.io... Your best bet might be to contact them directly; they'll probably ask for a copy of your project to see what's going wrong. It's been a long time since I used cocoon(js not io) and they typically took a couple of days to answer emails, but I'm sure they'll be interested in fixing their product. Out of interest, do your previews work in chrome browser on your mobile?


Wait, just to clarify, it does not work on Ludei launcher, it simply does not show any error, but no response to touch when dealing with drag/drop or even Has-Nth-Touch.

It works on both: Preview on my laptop's Chrome browser, and Preview on my Mobile's Chrome browser.
So yes, it's fine on device (chrome preview), which means no programming mistake. Right?
B
10
S
2
Posts: 109
Reputation: 982

Post » Wed Nov 11, 2015 10:35 pm

Sorry - in that case I don't know what could cause the problem. I am not sure whether or not multi-touch should be supported by cocoon.io; I am presuming it is otherwise you would have received error messages in the launcher. @Arcade_Ed is the forum expert on all things Ludei - perhaps he might be able to help...?
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,255
Reputation: 46,484


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 20 guests