Textbox angle ?

Get help using Construct 2

Post » Thu Jan 10, 2013 2:36 pm

Hi, sorry if this is a stupid Question, but is it possible to change the angle of a textbox ?

Tried it already with css styling but it doesn't work.
   
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Thu Jan 10, 2013 3:15 pm

I think you should be more specific, maybe draw a sketch and show us what do you want to do.
B
17
S
4
G
4
Posts: 104
Reputation: 3,950

Post » Fri Jan 11, 2013 8:36 am




The black box is my textbox, and the red one is how she should be.

Sorry my English is so bad, that I can't describe it better.    
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Jan 11, 2013 9:49 am

No CSS is necessary. Do you want to change it in the layout, or with events?

In the layout view, just click and drag on the rotation handle, just like any other object.



As an event, simply change Object.Angle through rotation (relative to current angle) or by setting a specific angle (absolute).
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Fri Jan 11, 2013 10:15 am

I know what you mean but that's not possible with a Textbox.. A Textbox got no Angle in his properties :/
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Jan 11, 2013 10:18 am



No angle there :/
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Jan 11, 2013 10:50 am

Ooh, a textbox, for text entry. Sorry, didn't see that.

Yeah, it's a weird thing, actually. As a workaround I tested pinning it to another sprite (rotation and position) and it just refuses to rotate even when I rotate the base sprite.

I assume that it's some sort of technical limitation. Sorry, I don't have a clue :(
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Fri Jan 11, 2013 11:12 am

Can I ask what your goal is? I can't think of a reason why you'd want to rotate a textbox used for entry of information.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Jan 11, 2013 11:30 am

The text box is laid on a tree, and the trees angle is decreased because he stays on a hill, so I need to set the angle of the text box :/ No clue how I could do it, I will try now to make my own Plugin for the Textbox based on the given... But if someone got a different idea just tell it melocalboss2013-01-11 11:31:07
B
15
S
6
G
6
Posts: 512
Reputation: 5,550

Post » Fri Jan 11, 2013 11:38 am

Are you sure you can't use a text object instead of a textbox object?
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Next

Return to How do I....?

Who is online

Users browsing this forum: studio UNNAMED and 4 guests