Touch input error with new cocoonjs 1.4

Discussion and feedback on Construct 2

Post » Wed Jul 17, 2013 9:58 am

Im in the final stages of my first full scale game. It worked fine with cocoonjs 1.3. But after the 1.4 update the following problem has emerged:
The js launcher reports an error every time I touch the screen, "ReferenceError: JQuery is not defined" it says for every touch input, touchstart, touchend, and touchmove.

The game also crashes somtimes at a touchinput but never at the same place.
Is this a common problem with the new cocoonjs?
B
5
S
1
G
1
Posts: 15
Reputation: 841

Post » Wed Jul 17, 2013 7:53 pm

which version of construct are you using?
B
40
S
16
G
8
Posts: 476
Reputation: 8,120

Post » Thu Jul 18, 2013 11:23 am

Are you sure you're exporting using the 'CocoonJS' option and not 'HTML5 website' option? You must select the correct option at export time.
Scirra Founder
B
383
S
225
G
86
Posts: 24,134
Reputation: 190,601

Post » Mon Jul 22, 2013 7:39 am

Im using the latest version, 139. Yes I believe I am exporting correctly to cocoojs. The game works in the cocoonjs launcher (but it reports every touch input as an error) and can be compiled in their cloud compiler. But the game started crashing after cocoonjss update to 1.4
B
5
S
1
G
1
Posts: 15
Reputation: 841

Post » Mon Jul 22, 2013 8:08 am

Are you using a touch-related Plugin? Try turning it off. Try turning off other plugings systematically, could be one of them is randomly affecting this.

Try removing your Touch Object and adding it and it's events anew.

CocoonJS changed the way it detects and handles some touch and accelaration/motion events and returned values in 1.4. Could be your project is tryng to execute obsolete code.
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Mon Jul 22, 2013 6:41 pm

Thanks Xionor! Apperently I had added a plugin called touch2. I was not using it in the game but it was enough to have it in the project to mess things up. I removed it and there are no error reports any more.
Thanks again!
B
5
S
1
G
1
Posts: 15
Reputation: 841


Return to Construct 2 General

Who is online

Users browsing this forum: technofou and 2 guests