Problem with sliding

DuesDues Member Posts: 1,159
Hey!

I'm having trouble with my sliding menu. Sometimes when I slide it to hard (same issue left or right) it seems like my drag actor goes out of the scene and the sliding function stops. Any ideas how to solve this??

I have also searched the forums on how to set up a snap to center function.
I have a scene that's 3072 pixels wide, where I have three worlds. I want so that when I slide, it stops and centers on every world, so that you can't slide from first to last world in one swipe.

Hope you understand what I mean :)

Comments

  • ChakkuChakku Member Posts: 1,513
    If self.positionX>scene.width OR self.positionY> scene.height

    Change Attribute self.positionX [back on to screen, or to touch location]

    Change Attribute self.positionX [back on to screen, or to touch location]

    Hope this helps
    Chakku
  • DuesDues Member Posts: 1,159
    edited January 2013
    @chakku I will try this! Thanks!

    Hmmm.. Can't get it to work, actor still goes out of the screen
Sign In or Register to comment.