playMaker

Author Topic: Mobile "standard scrolling" by finger guestures, anyone?  (Read 2412 times)

FritsLyn

  • Full Member
  • ***
  • Posts: 191
Mobile "standard scrolling" by finger guestures, anyone?
« on: May 26, 2013, 02:53:34 AM »
This is a mobile-device thing that I am trying to do. It should be easy, but..

All I want to do, is being able to side-scroll, and possibly pinch-zoom with finger gestures - let's say like Angry Birds. Or something similar. Very, very standard.

Just so I can nicely move the camera along a 2D sideways game world or like I'd scroll up and down on a web page on a touch pad on a computer.

I have some funky conflicts when trying to move the very camera that I am reading gestures from.

So far my attempts has been .. ermh.. and my searching has been "close, but not there", so now I thought I'd try and ask, you might know, might want to help me a quick step forward. Thanks :)

Thank you ever so much :)

PS: I have watched all these, no answer:
http://www.hutonggames.com/tutorials_ios_fundamentals.php
« Last Edit: May 26, 2013, 02:58:15 AM by FritsLyn »

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Mobile "standard scrolling" by finger guestures, anyone?
« Reply #1 on: May 26, 2013, 11:24:24 PM »
I'm about to make the very same thing myself - I have seen a bunch of other threads on the topic but not many good solid examples ... If I come up with something solid ill post it.

FritsLyn

  • Full Member
  • ***
  • Posts: 191
Re: Mobile "standard scrolling" by finger guestures, anyone?
« Reply #2 on: May 27, 2013, 11:43:58 AM »
Thanks - alone for letting me know that I am not alone in blind searching.

2 things:

A) I did find that using "Store Delta position" in "Get Touch Info" somehow did not screw up the whole thing quite so bad. And also using a separate 1:1 copy of the main camera (right on top), but not marking it as "Main Camera" gave a somewhat loophole to some extend.

B) The trouble made me make another camera system - another game has started, so nothing is so bad it's not good for something; This is more original.

Still; I'd like this option in Playmaker, I'll post it as a feature request.

Cheers.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Mobile "standard scrolling" by finger guestures, anyone?
« Reply #3 on: September 26, 2013, 06:46:53 AM »
Hi,

 I would use Input.touche for that, it features all the functions you need to control the camera without you worrying about the gesture recognytion.

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

bye,

 Jean