How do I track multiple positions with mult-touch?

Get help using Construct 2

Post » Tue Aug 12, 2014 7:32 am

I want to have two separate sprites follow two fingers around the screen. Is there a way to track input positions for two multi-touch?

Alternatively, I had both sprites set to "Drag & Drop" and that works, my only problem is that I want to not be able to move one without touching both sprites.

So either I'd like to be able to track two touches at once, or I'd like to only be able to "drag & drop" both sprites if they are both being touched at the same time.
B
4
S
1
Posts: 5
Reputation: 354

Post » Tue Aug 12, 2014 8:23 am

You'd have to work with touchindex and set the actions for the object touched based on the touchindex of the touch touching it..

Alternatively you could use instance variables (or Booleans) and set them on touched and check those variables before having the actions performed..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Cha0tiXGamer, ketramtu18, MaujDeveloper and 8 guests