@oleg Wait! Not too fast. First, according to documentation, setAnchorPoint is a Bitmap method not a TextField or their parent, Sprite. Second, setScale would compress my text to fit in the space leading to distortion of my text. getSample could do the job if it was a height contraint but it is width one. Here is my game released on itch.io without the issue solved (I'll update it when I'll manage to find a solution to this) : https://flashjaysan.itch.io/non-sequitur-html-version
@oleg Oh! Now I understand. Instead of using C escape sequences, it's more streamlined. Great! I forgot about that feature. What's with TextField.new(font, ttx, ttx)? Why 2 ttx parameters?
Comments
--alternative
local text = TextField.new(nil, txt,txt)
text:setAnchorPoint(0,0.5)
text:setScale(580/text:getWidth())
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
First, according to documentation, setAnchorPoint is a Bitmap method not a TextField or their parent, Sprite.
Second, setScale would compress my text to fit in the space leading to distortion of my text.
getSample could do the job if it was a height contraint but it is width one.
Here is my game released on itch.io without the issue solved (I'll update it when I'll manage to find a solution to this) :
https://flashjaysan.itch.io/non-sequitur-html-version
2.
if I really understand you, then you need it?
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
**Multiline quotes
http://lua-users.org/wiki/StringsTutorial
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
What's with TextField.new(font, ttx, ttx)? Why 2 ttx parameters?
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: antix