IAPs price text only aligns to the left of my text!

0 favourites
  • 3 posts
From the Asset Store
OpenAI TTS
$9 USD
10% off
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • My game is almost done. I implemented IAPs and everything works as expected, except that the displayed price from the item loaded from google play store has the text alignment to the left. I'm using a SpriteFont, and even though I have the horizontal alignment set to center. And even reapplying the alignment after the text has been set. It still aligns to the left. Anyone know how to fix this?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Maybe there are some invisible characters like tabs added to the price. Try using trim(text) expression. Or there are characters not supported in your spritefont.

    You can as an experiment add something to the end of the text and see what happens.

    SpriteFond append "!"

  • I remember having a similar problem on iOS, but in the end I didn't use the center alignment, and now I tried to replicate it on a new project but it works fine (with the default sprite font that is included in Construct). Does it do only with the price (i.e. with text generated by a function), or if you add new text field with plain text the problem is the same?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)