"Is touching" event broken?

Bugs will be moved here once resolved.

Post » Tue Apr 30, 2013 9:02 pm

Link to .capx file:
TouchFail.r126.capx or TouchFail.r127.capx

GUI snapshop:


Code snapshot:


Steps to reproduce:

  1. Touch the orange bar and slide around to move the blue bar.

  2. While still touching the orange bar, touch elsewhere on the green.

  3. Remove your finger from the orange bar and slide the other finger (the one touching elsewhere) around.



Observed result:
The blue bar moves whether or not the orange bar is being touched.
[TUBE]http://youtu.be/ExbvFMWZEro[/TUBE]

Expected result:
I expect the blue bar to move only when there is a touch on the orange bar and to only be affected by that touch.

I have tried storing off indexes, IDs, and positions of touches. You can look at other tries I've made at making this work on the "How do I..." forums (http://www.scirra.com/FORUM/topic66935.html)

Browsers affected:
Chrome: yes
Android 4.1.1 default browser: yes
PhoneGap Android: yes

Operating system & service pack:
Windows 8

Construct 2 version:
Both r126 and r127.

Edit: Other systems affected added.wsims2013-04-30 22:56:06
B
7
S
1
G
1
Posts: 11
Reputation: 1,322

Post » Wed May 01, 2013 3:45 pm

We also have similar touching event problem too. Did you try previous release of r126?
B
20
S
4
G
4
Posts: 160
Reputation: 3,746

Post » Wed May 01, 2013 7:21 pm

I originally saw the problem under r126 and then made sure that it was still happening in r127. When testing under r127, I saw some different behavior, but the main problem was still there.

What kinds of problems are you seeing? Maybe if we could see this from different angles, the underlying problem will become more obvious.

Edit: I saw your issue here in this bug post. It does seem very similar to my issue. I've grown concerned that this isn't a bug, but just a misunderstanding in how to use Construct 2's language. In the documentation, they mention that the way that we are using "Is touching" should work for most cases, but imply that there are cases where you'll need to write a bit more code.wsims2013-05-01 19:27:14
B
7
S
1
G
1
Posts: 11
Reputation: 1,322

Post » Thu May 02, 2013 9:13 am

You can read http://www.scirra.com/FORUM/topic67148.html about our problem.

If this is a 'C2' bug it must be solved soon if we want to involve touch screen envoirement.
B
20
S
4
G
4
Posts: 160
Reputation: 3,746

Post » Thu May 02, 2013 4:23 pm

This is not a bug, your events are not multitouch aware. If there are two touches, Touch.Y or Touch.ID could return for either of them, which is not what you want but what your events say.

Here's a fixed version which is multi-touch aware: https://dl.dropboxusercontent.com/u/15217362/fixedtouchslider.capx
Closing as not a bug.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Thu May 02, 2013 7:33 pm

There is still a bug, even with your version.

First, for some reason, the version you uploaded doesn't work in Android Chrome at all (just a black screen).

When I put it into the default Android 4.1.1 browser, the blue bar jumps all over the place if a second finger is touching anywhere else on the screen.

Feel free to use my latest uploaded version: http://machinecodegames.com/showoff/touchfail7
B
7
S
1
G
1
Posts: 11
Reputation: 1,322

Post » Sun May 05, 2013 11:57 pm

Could I get confirmation that this post isn't being ignored?

Just for clarification, my code does a lot of things to keep the touches in check (including bounds checking, storing off touch IDs, etc.) But there is an underlying problem that hasn't been fixed.

I will upload a video to this post of the problem if I know this is being watched. But if this isn't being watched, I will open a new bug report.
B
7
S
1
G
1
Posts: 11
Reputation: 1,322


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests