Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: smiffy on August 15, 2012, 07:21:53 AM

Title: Trying to create an FSM for swiping through pages.
Post by: smiffy 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
Title: Re: Trying to create an FSM for swiping through pages.
Post by: jeanfabre 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 (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
Title: Re: Trying to create an FSM for swiping through pages.
Post by: smiffy on August 19, 2012, 01:19:40 PM
Thanks, bought input.touches will let you know how I get on.

Matt