Jump to content

Phaser.Text.align : event with multiple lignes, does not affect the first one.


bali33
 Share

Recommended Posts

Hi guys,

 

I tried to center a texte with multiple lines :

 

myText.text = "SOLIDE                                                                                         !!!!";

 

All question marks are displayed in the second lines because of the wordWarpWidth value - so far everything's ok.

Then I change the "align" property and set it to "right" - now all question-marks are aligned to the right but not "SOLID" which stays in the same position, at the left. Whatever align value is, all words in the first line stay at the left - even if the text contains multiple lines.

 

Any idea why ?

 

Thank you

Link to comment
Share on other sites

I tried to remove all the spaces, so my text looks like :

 

myText.text = "SOLID,

!!!!";

 

Then I set the align property to center and still only the second line is centered. Am'I doing something wrong ?

 

Thank you

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...