License from €75 Log in
DE EN FR ES IT CZ

Object text gets ignored

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 10 years ago
    Hi,

    i've been trying to solve this but can't find anything. I'm moving with interface via the :to() function, all works but the object texts inside of this interface linked to the interface buttons gets ignored. They don't move with the interface, they are being shown at the position that has been set for them no matter what.

    Any idea what could be wrong? This same thing works for Sebastian. Tested in RC0.
    Thanks.
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 10 years ago
    could it be that it has something to do with the text font  itself? That's the only thibg we didn't check over the last private messages... 

    I use a png font with a max line width set. 
  4. · 10 years ago
    Damn Sebastian you've solved it! grin I'm using .ttf fonts for the game. Works with .png fonts. Well .ttf fonts looks better, they have better adjustments but i can work with that.

    Maybe this could be fixed in the future? razz
  5. · 10 years ago
    Haha, glad it works now smile 

    to make this clear for the devs: sticked object text to their corresponding object/button should be normal. When moving an interface via Lua with object text on it, the whole text should move with it smile 

    (like it does with non ttf Fonts already) 

    So the coordinates using in the object text action part are not absolute to the screen but relative to its parent (interface) . 

    Even if we can't move the text directly. Moving its interface and by that moving the text is pretty cool. 

    Scrolling texts are possible with this (credits, scrollable lists, diary entries) . 

    Slide-in/out texts make some things look cooler (my custom dialog system uses this) .  

    If i interpret it right these texts would also be affected indirectly by all the :to stuff applied to its holding interface. 

    peace out  *drops mic*

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?