Scroll text?

Get help using Construct 2

Post » Sat May 25, 2013 12:50 am

Is there a feature somewhere that allows me to scroll a text item? I have a chat box where all the messages appear as people type... but once it hit's the bottom, it just goes off the screen... How can I can make it scroll? I have tried a plugin I found in here, but it did not work (plugin errors when I tried to start Construct 2 after loading it)

Thanks!
B
6
Posts: 35
Reputation: 370

Post » Sat May 25, 2013 1:18 am

listbox
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Sat May 25, 2013 2:38 am

Append text: newline & TEXT.INPUT

putting ' newline & ' in append text makes it add onto the text object, start a new line, and on that new line put whatever TEXT.INPUT has for a string
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sat May 25, 2013 3:14 am

Take a look... I'm using new line... but when it reaches the end, I need it to scroll...

JoshWegener2013-05-25 03:14:55
B
6
Posts: 35
Reputation: 370

Post » Tue May 28, 2013 2:21 pm

Try aligning the text to bottom instead of top. Or move the text object up... or remove the first line of text!
Scirra Founder
B
382
S
223
G
86
Posts: 23,997
Reputation: 189,771

Post » Tue May 28, 2013 3:07 pm

You could try to use a text box object set to "textarea" and readonly. With a bit of javascript you can make the text box to autoscroll to bottom. See an example here.
B
60
S
24
G
23
Posts: 934
Reputation: 17,528

Post » Wed May 29, 2013 4:00 am

@Magistross that worked great! it seems a little odd to have to exec JS to get it to scroll and there is no append... but it works, so Thanks!
B
6
Posts: 35
Reputation: 370

Post » Wed May 29, 2013 2:33 pm

Yeah, that's two basic features that should be readily available to the text box... Maybe @Ashley will find time to add them in the near future.

Anyway, as you see, we can easily do without !
B
60
S
24
G
23
Posts: 934
Reputation: 17,528


Return to How do I....?

Who is online

Users browsing this forum: pokka, robopunch and 4 guests