Textbox angle ?

0 favourites
  • 12 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • 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.

  • I think you should be more specific, maybe draw a sketch and show us what do you want to do.

  • <img src="http://s1.directupload.net/images/130111/69kteldw.png" border="0" />

    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.

  • 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.

    <img src="http://dl.dropbox.com/u/14522925/clickdrag.jpg" border="0" />

    As an event, simply change Object.Angle through rotation (relative to current angle) or by setting a specific angle (absolute).

  • I know what you mean but that's not possible with a Textbox.. A Textbox got no Angle in his properties :/

  • <img src="http://s14.directupload.net/images/130111/zsco8jr9.png" border="0" />

    No angle there :/

  • 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 :(

  • 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.

  • The text box is laid on a tree, and the tree?s 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 me

  • Are you sure you can't use a text object instead of a textbox object?

  • The user need to write something in the tree, I think that?s not possible with the text object

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I know its quite an old question, but I did it in this way:

    TextBox Set CSS: "transform" ; "rotate(10deg)"

    or

    "transform" ; "rotate("&SomeAngle&"deg)"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)