swipe to scroll to set points

0 favourites
  • 3 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hi all,

    I am trying to create a swipe navigation to move around a map. I have created a test capx using the image below.

    <img src="https://dl.dropboxusercontent.com/u/101200636/scrollGrid.png" border="0">


    I want to be able to use a swipe gesture (up/down, left/right) to move the map to centre on the next square. I have managed to get my capx to move between the 1st and 2nd squares (red and blue) but it won't go to any others. I don't know why, I maybe doing it completely wrong! I would also like it to scroll smoothly but at the moment mine just pings to the next square.

    Does anyone know what I am doing wrong?


  • For the smooth scrolling, you could make a group that starts disabled, change the target position variable(s), and make it the view move towards the target at a small increment every tick until it hits the target, then disable the group... But that's still a bit crude, I'm sure lol.

    I haven't had the chance to try any of it, so pardon me if it doesn't work well xD

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • exkage,

    Thank you for taking the time to reply :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)