TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Old Questions (from 1.x/2.x)
→
Label Not Displayed Correctly Flash->iOS
Pages:
1
Label Not Displayed Correctly Flash->iOS
FortySe7en
Posts: 304
August 28, 2012, 02:08:03 pm
Hello!
I have an issue with Label behavior.
Apparently, no matter what I do in terms of aligning and label height, I get different results on iOS and in Flash. Everything (text wise) is displayed higher in iOS than in Flash, it's roughtly the height of the text.
Is there any way to fix it other than do 'do only in flash' blocks to fix positioning manually?
Best Regards, 47
camaleonyco
Posts: 204
August 28, 2012, 06:18:57 pm
You have to use the "do only in flash" block. If you want them to appear in the same position you have to substract half of your label actor's width to the X coordinate, and half of its height to the Y coordinate. That works for me. I've attached an example.
FortySe7en
Posts: 304
August 29, 2012, 01:48:10 pm
Thanks for the answer!
For now I've made my label have a wonderful height of 1 pixel
. Works for single line of text.
Pages:
1