playMaker

Author Topic: Touch and Slide - Rotate Object  (Read 2028 times)

bartleycollin

  • Playmaker Newbie
  • *
  • Posts: 18
Touch and Slide - Rotate Object
« on: September 29, 2013, 04:00:23 PM »
I'm currently developing a mini-golf game for mobile, and I need to set up a club system. My plan is to have it like this- When you tap on the screen and drag down, the club rotates forwards, away from the camera. But when you drag up, the club moves backwards up towards the camera. Although I'm experienced with Playmaker, I've never dealt with anything of this sort. Any ideas, or suggestions would be highly appreciated. 

P.S. I just wanted to emphasize that this is for mobile

Thanks! -Collin

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Touch and Slide - Rotate Object
« Reply #1 on: September 30, 2013, 02:03:14 AM »
Hi,

 I would advice that you use Input.touches for touch management so you can get access to dragging events easily.

then using that dragging system from Input.touches you can rotate the character arm.

https://hutonggames.fogbugz.com/default.asp?W961

bye,

 Jean