resizing an image with a two finger pinch

jorkosjorkos Member, PRO Posts: 353
edited November -1 in Working with GS (Mac)
Hi,

I'd like to allow people to resize a character in my game by using a two finger pinch (to make it smaller) or stretch (to make it larger). I've seen this functionality in other games. Does anyone have experience with this? I can't figure out how to do it. Thanks so much for your ideas & input.

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Use magnitude of the two touches: (magnitude(touch1X-Touch2X,Touch1Y-Touch2Y))

    Then you'll relate image size to that number. If you need more help, I'd be happy to make a demo.
  • Alejandro93Alejandro93 Member Posts: 4
    Hello Asymptoteell;

    can you make a demo please??

    thanks;

    Alejandro
Sign In or Register to comment.