Swipe like the iOS Photo APP - How too?

Hello Community,
Well i have a Problem with Swipe the Camera…
I want to make a presentation on iPad with interactive Pages.
So i did all Pages with EZGui and each Page works fine on iPad.
Now i have 20 Pages and want to swipe from one to the next… like the iOS Photo APP. I don’t need pinch or zoom in only swipe from left to right and via versa…
The Problem ist that i want to get the same behavior as the iOS App.
So if you swipe the camera moves with the finger with a small delay tween and if you reach a specific distance then it moves to the next pages and stop there in the center of the page…
I was looking for iTween but don’t really know how to code that…
Maybe someone did it and would like to share how too or better a code snippet ?

many many thxxx for taking the time
:face_with_spiral_eyes:Kerstin

Im doing the same thing but for a menu system for a project I am working on. I’ll help you once I figure it out for me.

I picked up the FingerGestures Plug-In in the meantime. Might be worth checking out. :slight_smile:

Hi,
well i now use itween to move the Camera and this function :

for(touch in Input.touches){
  pos = Vector3(touch.position.x, Screen.height - touch.position.y, 0.0);   
  }
 //Phase Moving   
        if (Input.touchCount > 0)
        {
            var t : Touch = Input.touches[0];
            if (t.phase == TouchPhase.Began)
            {
                touchStart = t.position;
                swipeit = false;
            }
            if (t.phase == TouchPhase.Ended || t.phase == TouchPhase.Canceled)
            {
                touchEnd = t.position;
                 if (horizontal == true) {
              // iTween.MoveTo (gameObject, {"x" : page.position.x, Time : 0.8});
           }
           if (horizontal == false) {
              // iTween.MoveTo (gameObject, {"y" : page.position.y, Time : 0.8});
           }
           }
        }
if (Input.touchCount > 0.0  Input.GetTouch(0).phase == TouchPhase.Moved) {
 //Check the location of finger
 deltaPos = Input.GetTouch(0).deltaPosition;
if ((deltaPos.x < -40) || (deltaPos.x > 40)) {
  print ("Scroll X");
  horizontal = true;
}
if ((deltaPos.y < -20) || (deltaPos.y > 20)) {
  print ("Scroll Y");
  horizontal = false;
}