Moving Camera With Swipe In Increments

floatingwoofloatingwoo Los Angeles, Calif.Member Posts: 393
edited April 2015 in Working with GS (Mac)

My question is , whats the best way to set this up....
I want the user to be able to select which level (or chapter) he would like to go to using one long scene (iPad horz.2048 x 768), Using a swipe motion to navigate through the chapter selections. I tried a simple swipe detector...that detects which direction the swipe is. But I'm not sure how to set (scene.camera.origin.x) to move accordingly.
Edit: I can get the camera to move but not stop.
I would like to have the camera only move to the X.Pos. of the next chapter image on either side and stop (ease in). I can set the images up dividing the space equally so the camera could move say +256 or -256(equal increments). I think I would want to use interpolate to move the scene.camera.origin.X, but only in increments how does one do this?

Comments

Sign In or Register to comment.