Jump to content

Pixi and Anchor positioning


pdiddles03
 Share

Recommended Posts

If you want to rotate by 90 or 180 degree, or flip it, you can do it with texture (http://pixijs.github.io/examples/index.html?s=demos&f=texture-rotate.js&title=Texture%20Rotate&v=dev). As for real rotation, "getBounds()" and "vertexData" (that's only in pixi v4) provide enough info. There was a PR that added special sprite frame stuff: https://github.com/pixijs/pixi.js/pull/2465 , but it got rejected and I'm working on new implementation.

Link to comment
Share on other sites

I don't think so, but it is possible. I am scaling my sprites with sprite.scale.x = value and sprite.scale.y = value.  The result in getBounds is the original values.   

 

Also another question off subject, why do smaller sprites end up blurry somtimes?  can i fix that someway?

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...