playMaker

Author Topic: Trying to create an FSM for swiping through pages.  (Read 3981 times)

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Trying to create an FSM for swiping through pages.
« on: August 15, 2012, 07:21:53 AM »
So what I want to do is very similar to the functionality of the iphone home screen.

Multiple pages that the user swipes to move through.
The page follows the finger and springs back when released.
Depending on where its released it will either spring to the current page or next/previous page.
Recreate the last/first page spring effect on iphones/ipad.
And probably at some point be able to pinch to zoom and move the screen within the constraints of the current page. Oh and double tap to zoom in/out on specific parts (like safari)

So I'm just wondering if anyone out there has any thoughts on where to start, things I should bear in mind, or even has anything to share? Any help would be appreciated.

Cheers,
Matt

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Trying to create an FSM for swiping through pages.
« Reply #1 on: August 15, 2012, 08:18:14 AM »
Hi,

 I created a bridge for Input.touches, and in there, you'll have a drag system that will be a good base for you to develop such swiping feature. What you are willing to achieve is quite an advanced feature tho.

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

you'll need to purchase Input.touches tho, else you can do without, but the level of complexity will increase.

bye,

 Jean

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
Re: Trying to create an FSM for swiping through pages.
« Reply #2 on: August 19, 2012, 01:19:40 PM »
Thanks, bought input.touches will let you know how I get on.

Matt