How to create a scrolling list?

0 favourites
  • 4 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Something along the lines of this:

    <img src="http://oi43.tinypic.com/tshk.jpg" border="0" />

    Try not to get distracted by my amazing Paint skills. <img src="smileys/smiley2.gif" border="0" align="middle" />

    So for those who don't know what I'm talking about, this would be a list of, well, stuff. Not necessarily a list of options -- I was planning to use it to list achievements a player won after beating the level. Anyway, you could click inside the box and scroll through the list (is it possible to make it scroll using the middle mouse wheel, by the way?).

    I planned out how to do most of it, but the thing that stumps me is that the options that don't fit within that inner box have to be hidden somehow, as if the inner box is a window into another layer. I'm not really sure how to get that working. Any ideas? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • You could use a sprite the height of the text to cover the text at the top and bottom.

    http://dl.dropbox.com/u/5426011/examples%208/scroll.capx

    Another idea would be to use the canvas object to paste the text into, then hide the text otherwise.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Huh, that's perfect! Thanks a lot man, great work as always. I'd probably be using pictures instead of actual text -- it should still work for that, right?

  • Thank too much R0J0hound -> this is solution I am looking for...you are rock.... <img src="smileys/smiley1.gif" border="0" align="middle" />

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