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
367
S
217
G
82
Posts: 23,277
Reputation: 184,269

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
367
S
217
G
82
Posts: 23,277
Reputation: 184,269


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, R0J0hound and 11 guests