Vertical scrolling swipe gesture

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hiya all,

    I'm looking at building a highscore table, and have a viewable screen resolution of 510x300. The playfield size will probably be something like 510x3200, with around 50/60 high scores listed. How do you go about making a swipe gesture similar to, say, the facebook app, where you swipe and it scrolls down (or up) rapidly for a quick swipe, or gently for shorter,slower ones?

    Hope you guys can help :) My first attempt resulted in the gesture activating on a single touch of the screen, whether I "swiped" or "touched" :S

    Chris

    Edited once, last by cdhexter (August 29, 2014 at 1:32 PM).

  • This can also be used to scroll a single object... for my needs, i want users to be able to quickly swipe to move scrolling text (an image) ahead as they desire. By reversing the code on line 12 and applying it to the Y position of my image, it works FLAWLESSLY. I needed something like this and was struggling to get it to work right. DaveC saved the day!

    Kevin Gunn (Tuna) - Hey! Check out MechaBall on iTunes by scanning below!
    [SIGPIC][/SIGPIC]

  • In the awesome example of DaveC i added a simple button detection touch system....
    Is a good way to do this??

    Another problem is the delay in position of text (don´t keep the position of active)
    Any way of solution this or it´s impossible......is important in my proyect.


    Please login to see this attachment.


    Thanks.

    ......DaveC I love your tricks in UI....please sell these in clickstore :)

    Regards,
    Ximo

  • I would do something like this (so the user definitely selects the button rather than occidentally presses it when trying to scroll) Also you don't need to create duplicate objects for the buttons/text. To solve the text scrolling issue you just need to position the string ONCE and then check "FOLLOW FRAME" in the string objects properties.

    Please login to see this attachment.

    Check out my Game on Itch.io
    Please login to see this link.

  • Thank you DaveC!!!

    You can does wonderful things and is an example to follow!!!!

    I add a few tweaks to name the buttons with a list & auto resize frame ....is what I would like to have had when I started with fusion 2.5

    Please login to see this attachment.

    Regards,
    Ximo

    Edited once, last by ximo (December 14, 2014 at 8:30 PM).

  • I would do something like this (so the user definitely selects the button rather than occidentally presses it when trying to scroll) Also you don't need to create duplicate objects for the buttons/text. To solve the text scrolling issue you just need to position the string ONCE and then check "FOLLOW FRAME" in the string objects properties.

    Please login to see this attachment.

    This is really cool, exactly what I needed, thanks for posting it!

    I was really hoping to use it as a sub-application so that I could have a static menu bar on top and a scrolling frame underneath, like a lot of Android apps do, but couldn't work out how to get the scrolling frame to stop registering touches outside of the sub-application frame. Any ideas how this might be possible?

  • I have done the same thing... when i get home I'll forward it unless someone beats me to it. its very simple. DaveC's events should just be focused on the one item you want to scroll

    Kevin Gunn (Tuna) - Hey! Check out MechaBall on iTunes by scanning below!
    [SIGPIC][/SIGPIC]

  • This can also be used to scroll a single object... for my needs, i want users to be able to quickly swipe to move scrolling text (an image) ahead as they desire. By reversing the code on line 12 and applying it to the Y position of my image, it works FLAWLESSLY. I needed something like this and was struggling to get it to work right. DaveC saved the day!

    What do you mean by "reversing the code" ? I also want to make an object move by swiping but I can't succeed.

  • Is it possible with the mfa ximo posted to jump to an individual frame depending which button was clicked?
    Also, if I want to have sentences in the buttons and not just single words how can I get the button to be the size of the text which´s in it?

    Check out my apps: Please login to see this link.

  • Hi nyme,
    In this new example you selected the frame clicking the button options text.

    I don´t know as change the size of button for adjust to text. :o
    DaveC its a mega master of Fusion UI....Maybe he could help you with that

    Please login to see this attachment.


    Ximo

    Regards,
    Ximo

  • Thank you so much, it really helped me out!
    I´ve still got the problem with the size of the buttons but I´ll hopefully
    find a way to do this.

    nYme

    Check out my apps: Please login to see this link.

  • I try to not just put single words but phrases in the buttons.
    So if the phrase is bigger than the actual button it gets all messy,
    so I´d need a button that automaticly changes the size to the
    size of the phrase which´s in it.

    Check out my apps: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!