How to create a scrolling list?

Get help using Construct 2

Post » Sat Dec 31, 2011 10:06 pm

Something along the lines of this:



Try not to get distracted by my amazing Paint skills.

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? SullyTheStrange2011-12-31 22:07:08
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Jan 01, 2012 8:36 pm

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.
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Sun Jan 01, 2012 10:04 pm

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?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Sep 23, 2012 7:20 am

Thank too much R0J0hound -> this is solution I am looking for...you are rock....
B
11
S
2
Posts: 73
Reputation: 1,438


Return to How do I....?

Who is online

Users browsing this forum: Televangelist, Yahoo [Bot] and 27 guests