Multiple Touch scripting

  • I was trying to figure out the best/easiest way to have the functionality of having a sprite (round), when you touch and drag you move it around normally. But if you have one finger on it, then put another finger down and turn, the sprite will turn with the 2nd finger (like a knob pretty much).

    I tried an event where if touching sprite and on Nth Touch started (1), to set the angle of the sprite to where the 2nd touch is. It seems like the sprite turns a little towards the 2nd touch but then nothing else. Its weird because I don't really see any event to keep running on the Nth touch like is touching?

    Anyone do something like this that could help? I'm sure it is probably not too hard but I program all day and then get home and try and do more and my brain is usually fried by then :(

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • hey dude. i dont know the answer but i have some ideas. am i right if i assume that you want to move the sprite around like a circle and you want the second finger to be the center? like a dividers?

    at first i would try using the MultiTouch Plugin.

    http (colon) //www.scirra.com/forum/plugin-multi-touch_topic49525.html

    secondly i would try to create a "limited revolute joint" on "second touch".

    you can ad limited revolute joints to your sprites if they have physics behaviour.

    i have no idea if this is going to work and how this is going to work but i hope i could help you a little bit.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)