How do I slide/drag for 2 touches

Get help using Construct 2

Post » Tue Jun 03, 2014 2:35 pm

Greetings!
I have currently looked up this amazing tutorial here https://www.scirra.com/tutorials/718/sl ... ton?page=2

My currently problem however is that i want to use 2 touches on seperate objects, is that at all possible?
Ie, i move 1 object in 1 touch and at the same time move another with a different touch, at the same time?
Is there a way to recognize 2 touches and make the objects follow touch 1 and a seperate object to follow touch2?

Thank you for your time and thanks for this amazing tutorial! ^_^

(No drag & drop, since it passes solid objects, and is only bound by layout)
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Tue Jun 03, 2014 3:37 pm

Hey Greaver, Construct 2 does support Multi touch so it shouldnt be too hard to get what you want to work
Touch related expressions are covered in depth in the Manual
https://www.scirra.com/manual/119/touch
And this Tutorial as well goes into further depth
https://www.scirra.com/tutorials/202/touch-controls-and-a-trick-to-detect-input-method
A similar question was asked here...and the answer might work for you as well with a little modification.
https://www.scirra.com/forum/viewtopic.php?f=147&t=106470&p=788297#p788297

I would use The Event Condition "Is touching object" or "On Nth touch start"
and then Actions that move the Object to the Touch X,Y positions for each Touch
Every tick

Touch supports Multi touch though the "On Nth touch start" and "On Nth touch end" Events

Hope that makes sense
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
35
S
13
G
8
Posts: 318
Reputation: 7,685

Post » Tue Jun 03, 2014 4:42 pm

mystazsea wrote:Hey Greaver, Construct 2 does support Multi touch so it shouldnt be too hard to get what you want to work
Touch related expressions are covered in depth in the Manual
https://www.scirra.com/manual/119/touch
And this Tutorial as well goes into further depth
https://www.scirra.com/tutorials/202/touch-controls-and-a-trick-to-detect-input-method
A similar question was asked here...and the answer might work for you as well with a little modification.
https://www.scirra.com/forum/viewtopic.php?f=147&t=106470&p=788297#p788297

I would use The Event Condition "Is touching object" or "On Nth touch start"
and then Actions that move the Object to the Touch X,Y positions for each Touch
Every tick

Touch supports Multi touch though the "On Nth touch start" and "On Nth touch end" Events

Hope that makes sense



Hey greetings man! Thanks for the awesome reply! ^_^
After reading a bit more about it, i have found the solution of what i need, which is basically 'object move to Touch' every tick BUT for the second touch, that is what i could not find ^_^
Move object to touch.X and touch.Y is simple, but moving the object to the second touch was the problem! ^_^ Thanks for the links, i will check them out asap!
B
12
S
3
Posts: 164
Reputation: 1,530


Return to How do I....?

Who is online

Users browsing this forum: MadSpy and 7 guests