Touch support and draging object

Get help using Construct 2

Post » Tue Sep 20, 2011 6:58 pm

Hello, I'm trying to make a dragable object with touch support, with mouse I can use mouseX and mouseY but how with touch support for mobile ? is their is touchX or touchY variable or any hint to achieve it ?

thanks an advance
B
22
S
3
G
5
Posts: 141
Reputation: 5,117

Post » Tue Sep 20, 2011 7:37 pm

Touch.X and Touch.Y are equivalent to Mouse.X and Mouse.Y for the touch object, but are only updated during a touch (between On Touch Start and On Touch End). Also these expressions only return a single touch... I need to improve it for multitouch in future!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Sep 13, 2014 2:24 am

@Ashley Is multi touch being supported at the moment, r180? I am trying to instantiate particles in multiple locations, during the "Is In Touch" event, but I am not finding the right methods. I can call System, create object at location Touch.X and Y, but what do I do for the second Touch? Thank you.
B
8
S
3
Posts: 16
Reputation: 702

Post » Sat Sep 13, 2014 10:39 am

Yes, this thread is from 2011, we have supported multitouch for years now.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, tatogame and 28 guests