Sign in to follow this  

Pixi.Text & CocoonJS

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.

Share this post

Link to post
Share on other sites

But I only get the issue if I use the anchor. If I set the text as 0,0 or 50,50 for exemple, the text appears at the right location.
I can probably calculate myself the right position then.


Thanks for the info!

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.