Keyword: layer width?
  • cerbellum
    member
    Posts: 27
    Joined: Sun May 07, 2006 3:59 pm
    Location: Antwerp, Belgium

    Keyword: layer width?

    by cerbellum » Tue May 30, 2006 3:15 am

    I've been working on my external txt/sms module lately and I was trying to integrate a typewriter like effect besides the scrolling effect for the externally loaded text.

    For the typewriter to work correctly I should be able to adjust the position of the text, depending on the width of the already shown text, because as for now, the typewriting is working but every letter that is added makes the layer grow left and right as it always takes the center of the text input as midpoint:

    Code: Select all

                        A
                     ABCDEFG
                 ABCDEFGHIJKLMNO


    Something like that.
    This gives problems for longer texts where the end of the typewriting falls of screen, so I would like to move the text some pixels to the left with each letter that is added by the typewriting effect. I could use a fixed width to move it, but then problems show up when using other fonttypes (as all font types have different widths and letters do too).
    This entire problem could be solved if there was a keyword representing the layer width, but I haven't been able to find anything like it.
    Am I looking over it or could this be a usefull keyword addition for 2.5?

    Greets,
    Kevin
  • User avatar
    boris
    garageCube team
    Posts: 911
    Joined: Mon Jun 28, 2004 12:36 am
    Location: Geneva
    Contact:

    by boris » Tue May 30, 2006 3:45 am

    Yes, we have added this keyword on the 2.5
    (exactly for this raison)
    Boris * garageCube team
  • cerbellum
    member
    Posts: 27
    Joined: Sun May 07, 2006 3:59 pm
    Location: Antwerp, Belgium

    by cerbellum » Tue May 30, 2006 11:49 am

    Ok, great, thanks!

Who is online

Users browsing this forum: No registered users and 2 guests