Multitouch magnitude?

HunnenkoenigHunnenkoenig Member Posts: 1,173
edited November -1 in Working with GS (Mac)
I want to change an image size by multitouch. When the user moves two fingers toward eachother, the image should shrink and if the user moves two fingers from eachother, the image should grow.

I think, I have to use magnitude touch1 X and touch2 X, but how do I watch if it grows or shrinks?

If I constrain it to an attribute, it will always watch only the actual attribute value... I think. Any advice?

Comments

  • synthesissynthesis Member Posts: 1,693
    Tough one...I've never tried simulating a "pinch" effect. Will be interesting if someone out there has an answer. Seems tough to me.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I managed to get it work somehow, but it was rather bad, than good. Too many rules and not really what I wanted :-P

    I still would like to see a solution from a pro :-)
  • synthesissynthesis Member Posts: 1,693
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    it's only similar :-)

    He just wants to test multitouch and wants to know, if he should spend 99 dollars on GS.

    I have a real task which needs a real solution. It's something specific, not just a general enquiry, which can be found dozens of times on the forum and a search would spit out them within 2 seconds :-P
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    I rather open a new topic for this...
  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,159
    I've done something similar. It involved finding the abs value of the halfway point between touches, moving the actor to that point, then changing the width and rotation to match the line between the touches. I hope that helps.
  • HunnenkoenigHunnenkoenig Member Posts: 1,173
    thanks, but I already solved it :-)
    I also uploaded the demo for that :-)
Sign In or Register to comment.