[R155] Touch.TouchCount minor bug

Bugs will be moved here once resolved.

Post » Fri Dec 27, 2013 9:30 am

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/108799982/Capx%20Demos/MobileControls.capx

Steps to reproduce:
1. Continuously hold and move red sprite control (ControlPoint) and move it left to right
2. Touch green sprite control (Jump)
3. Continue to move red sprite (ControlPoint)

Observed result:
The green character sprite (Sprite) will move until you press Jump at which point it stops moving.

Expected result:
The green character sprite (Sprite) would move, jump and keep moving

Browsers affected:
Android export, as I do not have a touch screen monitor to try on my PC

Operating system & service pack:
Android 4.1.2 & 4.2.2

Construct 2 version:
R 155


More Information: I notice that when you press anywhere on the screen with your first finger the Touch.Touchcount will equal 1. When you press with a second finger it will equal 2. If you remove the second finger, while the first is still touching, it will read 0; but it you remove the first finger, while the second is still touching it will equal 1.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Mon Dec 30, 2013 7:06 pm

Can't reproduce on Chrome for Android. Can you? Are you using the Android browser or Crosswalk or CocoonJS or what?
Scirra Founder
B
387
S
230
G
88
Posts: 24,249
Reputation: 192,450

Post » Mon Dec 30, 2013 10:04 pm

I've tried exporting it with both Android and PhoneGap, and building it with the PhoneGap website. This is where the issue occurs. It seems to work fine on Chrome on my Note 8.0, but not when I make an APK.

When I make an APK, the text box that shows the value Touch.TouchCount shows 1 when the first finger touches, 2 when the second finger touches, but if I remove the finger I touched second it shows 0, but if I remove the finger I touched first, it shows 1.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest