Multitouch Not Working

Get help using Construct 2

Post » Mon Aug 19, 2013 3:49 pm

So I'm reasonably new to construct 2 and I'm sorry if this seems like a stupid request, but I can't seem to get multitouch to work. Following Kyatric's tutorial on creating an on screen thumbpad, I then also created a button to fire a weapon in my little game here: https://www.dropbox.com/s/yy3wny3a693qpz8/ZombieExample.capx

However, when I preview the game on my android tablet via cocoonjs, it appears that multitouch does not work as when I click the fire button and I'm navigating about, my fire button seems to override control of the touch function as the player stops moving and the joystick 'centers'.

Any ideas?galacticfan2013-08-19 18:09:10
B
9
S
3
G
1
Posts: 53
Reputation: 1,296

Post » Mon Aug 19, 2013 3:55 pm

You could check out the capx at the end of https://www.scirra.com/tutorials/398/touch-stick-controllers.

Also it's important that the hardware support multi touch. Without knowing the hardware it could be older and be single touch anyways.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Mon Aug 19, 2013 4:17 pm

[QUOTE=jayderyu] You could check out the capx at the end of https://www.scirra.com/tutorials/398/touch-stick-controllers.

Also it's important that the hardware support multi touch. Without knowing the hardware it could be older and be single touch anyways.[/QUOTE]

I have a nexus 7 with android 4.3 so it can't be hardware related if it's one of the most up to date models on the market? However, might it be the fact it's android 4.3 and cocoonjs doesn't support 4.3 very well?
B
9
S
3
G
1
Posts: 53
Reputation: 1,296

Post » Mon Aug 19, 2013 5:53 pm

Update: I have also tried this on an iPad and I have the same problems which leads me to believe that it's a problem with the code however I can't see what's wrong with it :S If someone could take a look I would be grateful.
B
9
S
3
G
1
Posts: 53
Reputation: 1,296

Post » Mon Aug 19, 2013 8:17 pm

@galacticfan Somebody told me that 'button' objects are not supported with cocoonJS so touching it won't work. that is probably the issue if the object is a button and not a clickable sprite etc. if that is the case, use a clickable sprite! : D
B
46
S
16
G
78
Posts: 2,170
Reputation: 46,357

Post » Mon Aug 19, 2013 8:24 pm

[QUOTE=plinkie] @galacticfan Somebody told me that 'button' objects are not supported with cocoonJS so touching it won't work. that is probably the issue if the object is a button and not a clickable sprite etc. if that is the case, use a clickable sprite! : D[/QUOTE]

I have been using a sprite that I animated to make it appear like a button ;)
B
9
S
3
G
1
Posts: 53
Reputation: 1,296

Post » Mon Aug 19, 2013 8:32 pm

Oops. No idea then sorry! .capx looks fine to me and I'm not familiar with Cocoon export.
B
46
S
16
G
78
Posts: 2,170
Reputation: 46,357

Post » Thu Aug 22, 2013 11:34 pm

check out
http://www.scirra.com/forum/topic65502.html
where i provide a file for a possible solution for multiple touch inputs.
B
23
S
6
G
5
Posts: 132
Reputation: 4,487

Post » Fri Aug 23, 2013 8:56 am

[QUOTE=philx] check out
http://www.scirra.com/forum/topic65502.html
where i provide a file for a possible solution for multiple touch inputs.[/QUOTE]

Okay, that example works nicely. Now I just have to figure out a way of implementing it into my project.
B
9
S
3
G
1
Posts: 53
Reputation: 1,296


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 49 guests