Small scrollable area

0 favourites
  • 7 posts
From the Asset Store
Template for scrollable list, fully documented in comment and video
  • Hi there,

    busy with an app which displays a textbox half the windows size somewhere in the middle. And depanding on actions, text fields are spawned on top of this text box as extra options.

    I load a bunch of data from a php file elsewhere, this data dynamically spawns the text fields which become clickable links.

    Problem: when it loads a long list, the spawned list of text boxes below eachother become longer then the text field on top which they are generated ...

    Result: text links cover the entire app from the top down where they are generated.

    When I programmed in html I simply made a div with overflow-y: scroll with set dimensions, instantly giving me a scrollable area ...

    Is there something like this in Cs2 ?

    Something like a div which gives me a localised scrollable area ?

  • Sweet found my own solution :D

    So simple, I love this prog !

    is touching object, I set a var from touch.y once, compare distance difference from following touch.Y slide

    as long as its touching it increases or decreases all the Y from the spawned text objects

    Added some fade and invisible limiter for height and low and voila !!!

    loving it

  • lennaert, Could you provide example capx please for a slow minded fool today. Can't wrap my head around it lol

    I created something similiar, but it is overly complicated. This seems so much simplier.

    My very over complicated example.

    Scrollable SpriteFont

  • Hi there :D

    I took a look at that thing and euhm .. well .. yes ... looks, troublesome haha

    but, tbh, to get all the delimiters in place what I do requires some events to keep it very clean .. but it also kinda depands on where and what you need to apply. So keep in mind, added example is rough work.

    My approach is that i take a text box and spawn it .... hadnt used a sprite font before.

    Anywaysz, I added some pieces .. I abused your slider thing, and made it a slide controle.

    Just start your own example, my functionality is integrated together with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Lol, yeah, very troublesome :)

    Thank you for capx - Wow, so cool with slider - I will play around with it. Thanks again.

    As for sprite font, I sort of moved away from textbox as it tends to give some problems on mobile etc. I just use sprite font now for everthing. Once you learn how to make your own - it really is better (more pretty at least).

  • Your welcome.

    One of the things I'm currently liking to my approach is that I can set options/events/actions for each spawned textbox too. :)

    Just imagine a score list, with your score standing out, blinking or bigger font etc

  • Your approach is very versatile. Much easier to understand with the capx example.

    Yip, a score list will work nicely. But so many other uses too :)

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