Swipe up or down to scroll

I was wondering how I can make a actor that is 320 × 1270 to scroll up and down when you swipe the screen like when you are in safari on the iPhone!

Does anyone have any ideas.

Thanks
Conner

Comments

  • SolarPepperStudiosSolarPepperStudios Member Posts: 754
    Watch this video:
  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    I watched the video 2 times and still can not figure it out! Here is a drop box link to my
    game file.....https://www.dropbox.com/s/ja58ownknpxjldd/PRO.gameproj.zip

    Thanks
    Conner
  • mounted88mounted88 Member Posts: 1,113
    edited May 2013
    @Deepblueapps.com has a free template for scrolling the screen.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Does this help at all?
  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    It would work if I could use the whole screen to scroll like if you slide you finger in the middle of the screen. Also I what it to fill the whole screen, any Idea's.

    But thanks for finding that I may be able to figure it out.

    Conner
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2013
    Here's a demo. I'm tired and I can't seem to figure out the constrains properly but this is pretty close. For now, turn off one of the two constrains and test; then turn off the other instead and test.
  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    Here's a demo. I'm tired and I can't seem to figure out the constrains properly but this is pretty close. For now, turn off one of the two constrains and test; then turn off the other instead and test.
    This works great the only thing is that when you scroll up it turns black! is there any way to fix this?

    Thanks
    Conner
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Try this... I cheated a little with the constants (67) but it works for the image I used.

  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    Try this... I cheated a little with the constants (67) but it works for the image I used.

    Fantastic this works great! You have a great help.

    How can I change the size of the image! I need to make the image longer because when I add it in to yours it stinks mine!

    Thanks
    Conner
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Just replace the image with the one you want and change the instance's height and/or width. You'll need to adjust those constants (67s) to make it work properly.
  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    Just replace the image with the one you want and change the instance's height and/or width. You'll need to adjust those constants (67s) to make it work properly.
    My image is 1166 long what do I change the 67 too.

  • BIG_THINKIN_APPSBIG_THINKIN_APPS Member Posts: 944
    does anyone have any ideas! (:
  • ETGgamesETGgames Member, PRO Posts: 190
    There is a problem with that video. It says that the layer drag and cam are in should not be scrollable when they SHOULD. That is why it wasn't working for me when I tried this tutorial.
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited March 2014
  • j75j75 Member, PRO Posts: 235

    @tatiang What exactly are the "67's" in the constraints calculated upon? I need to add a larger image and can't figure out what number to input in place of the 67's. Thank you.

Sign In or Register to comment.