Help Creating a Scrolling Wheel

JfireJfire Member Posts: 3
edited October 2012 in Working with GS (Mac)
Hey everyone

I have a scene that will list the rules for my game but I would like the user to be able to scroll up and down the text with a finger swipe. Can someone help me with directions on how to set this up? Oh, and my thought is to have a the text displayed in a "box" to create a bit of a boarder between the text and the edge of the screen. This will mean the text has to appear from the bottom and disappear at the top as the user scrolls.

Thanks in advance to anyone that can help!

Answers

  • guillefaceguilleface Member Posts: 1,014
    hi i used this video from tshirtbooth , i made a walktrought for my game and i have this actor to control the camera, so when you swipe up and down is like searching safari in the iPad, hope this helps.

    http://gshelper.com/how-to-move-with-swipe-up-down-left-right/
  • JfireJfire Member Posts: 3
    Thanks guille, this is very close to what I need. The adjustment I need is to have the actor move with my finger when pressed and stop when released.
  • guillefaceguilleface Member Posts: 1,014
    ah ok so try when touch is pressed constrain self.position.y to mouse position.y (but i think you will have problems with the camera using this), or try when touch is inside/pressed to move (choose your direction)
  • JfireJfire Member Posts: 3
    Here's the issue with the constrain: the text moves perfectly as long as my finger is pressed but when I release and then press near the bottom of the text to make an additional scroll motion, the text jumps down to my new press point. This will not allow the user to see any further text.

    Also, I don't know how I will make the text appear and disappear at the top and
  • joshiwujoshiwu Member Posts: 207
    edited July 2013
    @Tshirtbooth has covered this in his grab-throw video I believe, the is definitely a youtube video that teeches how to find touchX and touch Y with unlocked actors. Idk how to make your text disappear. Maybe an actor with a background image on a higher layer.
Sign In or Register to comment.