Text Log with Scrollbar

Get help using Construct 2

Post » Wed Sep 18, 2013 7:11 am

It seems like a common game object in most projects, but neither Text nor TextBox really provide the functionality of a scrolling text object.

Let's say you're making an RPG like Baldur's Gate and you want a text log of all the events as they happen in the game:

[code]
Wizard casts magic missile at the darkness.
Darkness takes 0 damage.
A Pit Fiend emerges from the shadows.
[/code]

As text continues to fill the window, you run out of space and suddenly need a scrollbar. Is there a straightforward way to do this in C2?

B
9
S
2
Posts: 25
Reputation: 1,050

Post » Wed Sep 18, 2013 9:17 am

You want something like this than use this


If you cant find an Funtion you need, you should look every time in the Plugin list
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Sep 19, 2013 3:26 am

Ahh, I'll try that out thanks.
B
9
S
2
Posts: 25
Reputation: 1,050

Post » Thu Sep 19, 2013 2:12 pm

Here's a way to do it using events:

Demo
Capx

There isn't a scroll bar (though there is scrolling), but it wouldn't be too hard to add one to the example.zatyka2013-09-19 14:14:36
B
64
S
19
G
8
Posts: 341
Reputation: 12,195

Post » Fri Sep 20, 2013 4:54 am

Very clever implementation Zatyka. I think I might prefer it over a plugin if the performance is good.
B
9
S
2
Posts: 25
Reputation: 1,050


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Maako, max2612 and 6 guests