Simultaneous Touch IDs

Get help using Construct 2

Post » Tue Apr 16, 2013 6:06 am

Can someone outline for me the steps needed to get the different IDs for two different touches that occur simultaneously?

I have two large invisible sprites, each set to width = layout.width/2. If the player touches on the left side of the screen, this creates an on-screen control. If the player touches the right side of the screen, this creates a different on-screen control.

You can check out what I currently have here: Icarus. Note that you have to be playing on a tablet or mobile device to test both touch controls.

What I have sort-of works right now, but when I add the second touch, the on-screen control shows up where the first touch is, causing both controls to overlap.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Tue Apr 16, 2013 7:00 am

I have my debug box active in the live version at the moment. It updates every tick to show the LeftTouchID and RightTouchID.

As you can see if you try the game, the touch IDs are never assigned. Touch.TouchID does not seem to be working. Could this be a bug?

Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 17 guests