How do I Create a user-scrollable text area for Help?

Get help using Construct 2

Post » Tue Jul 29, 2014 11:28 pm

I want to create a help page layout like most iOS games I've seen where the user can simply scroll the text up and down inside a view port on the screen... or the whole screen if need be.

Is this possible?

I don't need the whole layout to scroll (like an arcade game), just let the user scroll up and down the text as they read.
B
22
S
4
G
1
Posts: 100
Reputation: 2,150

Post » Tue Jul 29, 2014 11:49 pm

never mind...

TextBox
Type: TextArea

Then set all the CSS properties for font, color, etc. in events.

Scrolling happens automatically. Thanks!
B
22
S
4
G
1
Posts: 100
Reputation: 2,150

Post » Wed Jul 30, 2014 9:18 am

How did you manage to do this?
Did you do it all in C2?
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Wed Jul 30, 2014 11:47 am

damjancd wrote:How did you manage to do this?
Did you do it all in C2?


Yep. Add a TextBox and then in the properties set its type to TextArea.

Then in the event page for the sheet, there is an action for setting CSS... basically you just set "color" to "white" or "background-color" to "purple" or whatever you like. "font-size", "font-weight", "border"...
B
22
S
4
G
1
Posts: 100
Reputation: 2,150

Post » Wed Jul 30, 2014 5:18 pm

@klkitchens Wait wait wait :) please. Are you saying you made a user scrollable area which scrolls down virtually through a LOT of text, while the textbox is smaller than the display size?

Is it possible to make this textbox uninteractible, except for the scrolling?
This will solve a MASSIVE problem for me if so. Not only me :)
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Wed Jul 30, 2014 5:20 pm

@klkitchens unfortunately there is no transparent background on the textbox :( I can't integrate it into the game
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Wed Jul 30, 2014 5:23 pm

@damjancd most of textbox visual properties you need to set by CSS

https://www.scirra.com/tutorials/624/text-input-using-textbox-and-invisible-textbox/page-3
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,598
Reputation: 34,823

Post » Wed Jul 30, 2014 5:24 pm

@damjancd - Yes there is

Image
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Wed Jul 30, 2014 8:40 pm

Allright, this has the potential to soothe all my pains :) or completely remove them. I will experiment with this. Thank you guys!
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Post » Wed Jul 30, 2014 9:10 pm

I've got a spectre over me, and it's haunting me, and cursing my fingers :)
Ejecta doesn't support textbox unfortunately. So I can't use this.

But I learned something today! Thanks everyone
B
37
S
6
G
1
Posts: 301
Reputation: 2,865

Next

Return to How do I....?

Who is online

Users browsing this forum: blue visionary and 5 guests