Onscreen controls multi touch

Get help using Construct 2

Post » Mon Feb 27, 2012 3:06 pm

does the touch control support multi touch?

i ask because lets say for example i make a simple racing which uses the arrow keys to control direction accelleration and braking of the car this would work fine in a browser with a pc and keyboard but if i want to play the game on an android or other tablet mobile device i cant because they dont have keyboard keys.

so i wanted to add an option to switch on touch based controls if needed and they would look like on some ipad games like this on screen



but can contruct 2's touch control handle both inputs at the same time? aslong as the device has multi touch obviously. will it work for someone moving the directional control and pressing the accelleration button at the same time?
B
3
Posts: 7
Reputation: 339

Post » Mon Feb 27, 2012 3:12 pm

The touch plugin does support multi touch, its Android browser that does not.
Try this plugin: [URL]http://www.scirra.com/forum/plugin-multi-touch_topic49525.html[/URL, It's just a extension to the touch plugin so I doubt it will work.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Feb 27, 2012 3:27 pm

so the touch control does allow for multi touch and if i made a game with the controls as shown above it would work just fine? but not on android lol. i did test it on my android but my tablet only supports single touch and i guess for that i could add a 3rd option to make the accelleration button behave as an on/off switch for single touch instead of holding it down in multi touch.

thats great news thanks for the help and ill check out that new plugin aswell :)
B
3
Posts: 7
Reputation: 339

Post » Mon Feb 27, 2012 3:56 pm

When native on the device It will probably work that's something you'll have to test, but Androids web browser currently does not support multitouch no. There is a update coming out to support it though soon!
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Fri Aug 03, 2012 10:16 am

Hey,

I am making using similar controls as 'Maxrpg' and I was wondering did you get your game to work on the iphone and tablets?

Cheer
Max
B
14
S
3
G
4
Posts: 32
Reputation: 2,654

Post » Fri Aug 03, 2012 4:59 pm

It is (was) only androids default browser that didnt support multi touch and I believe thats not even true anymore. And now newer android devices have Chrome which supports just about everything the desktop version does
B
13
S
5
G
2
Posts: 306
Reputation: 3,262

Post » Wed Aug 08, 2012 12:32 pm

Hey guys, Aridale you are correct the android supports multi touch now, how ever I seem to be having a problem with the Idevices. I am making a racing game for mobile devices and for the controls I have the accelerate and break button on the right hand side and the arrows to steer the car on the left.

On Idevices the problem is if after I have stopped touching the arrows it still keeps turning left. I have a condition for when you stop touching the arrows it stops turning but it does not realise that I have stopped touching.

Any ideas?
B
14
S
3
G
4
Posts: 32
Reputation: 2,654

Post » Wed Aug 08, 2012 6:55 pm

maxp010- that might be more related to the behaviour than touchscreen issues. On slower devices - and even newer ones without updated graphics drivers - there tends to be a 'bug' caused when a browser refreshes slowly, and seems to get 'stuck' on moving a particular direction. When you tap the control again, it should fix it.

Put a message in your game if you detect that they're having that issue.

Remember, it's a bug not a feature.
B
14
S
1
G
2
Posts: 85
Reputation: 2,810

Post » Thu Aug 09, 2012 11:55 am

Thank you for replying, how would go about detecting whether the user is having this problem, as it just appears they have two fingers down when they only have one?

Is this a bug with construct 2 or iOS devices? Also would there be a way to increase the refresh rate or any other solution to prevent the "Stuck" problem.
B
14
S
3
G
4
Posts: 32
Reputation: 2,654

Post » Thu Aug 09, 2012 2:18 pm

Hey Maxrpg did you get your controls working fine for both iOS devices and android?

Cheers
Max
B
14
S
3
G
4
Posts: 32
Reputation: 2,654

Next

Return to How do I....?

Who is online

Users browsing this forum: BipolarMike, totoe and 15 guests