Text formatting

Get help using Construct 2

Post » Thu Feb 26, 2015 2:07 am

How do I change the horizontal alignment of a text through an event? There doesn't seem to be any events available for this. I have a text object for dialogue boxes, but I want to change if the text is drawn from the left or in the center of the object depending on the line.
B
22
S
7
G
4
Posts: 235
Reputation: 3,503

Post » Thu Feb 26, 2015 6:27 am

I'm curious about this as well. I see it under text properties, but it looks like there is no way to change alignment on the fly. Perhaps this suggests an idea for improvement of the text object or another plugin.
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Thu Feb 26, 2015 7:10 am

@Hasuak
@bladedpenguin

You might add this behavior on text object.

Edit
A sample capx
Last edited by rexrainbow on Thu Feb 26, 2015 7:15 am, edited 1 time in total.
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566

Post » Thu Feb 26, 2015 7:13 am

NIce! Rex saves the day again :)
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Fri Feb 27, 2015 4:59 am

Weeelp, what can't C2 do? Thanks @rexrainbow, I'll be sure to check that out soon!
B
22
S
7
G
4
Posts: 235
Reputation: 3,503

Post » Mon May 04, 2015 2:57 pm

@rexrainbow Hey i was looking for this but trying to install your plugin i get the following error:
Image

I am using version 204.2
B
10
S
4
G
3
Posts: 176
Reputation: 2,539

Post » Mon May 04, 2015 3:03 pm

@Allardje

Put this behavior in html5\behaviors folder, not behaviors\ folder.
B
110
S
28
G
280
Posts: 4,487
Reputation: 156,566


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, Yahoo [Bot] and 6 guests