Jump to content

Pixi.Text & CocoonJS


Akis
 Share

Recommended Posts

Hey all,

 

I played a bit with the CocoonJS launcher today and in my 'game' and I noticed somethind weird with PIXI.Text.

 

If I put an anchor on the text, I'll get my text with a wrong position. The X seems ok, but the issue is the Y. For exemple, in CocoonJS, if I want a text vertically aligned, I will need to put its position to the height of the canvas minus the demi height of the text. What?! It's not the job of the anchor do calculate that? :P

 

Does anyone have seen this issue before?

 

I don't have the issue with a sprite + anchor for exemple. I only have it with a Text.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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