Jump to content

sprite as a container


fengFanYong
 Share

Recommended Posts

@ivan.popelyshev

How to set up transform of graphics? I want The size of the graphics Independent to the local coordinates of the sprite,for example:

var sprite = new PIXI.Sprite();

sprite.width = 10;

sprite.height = 20;

var grphics = new PIXI.Grphics();

grphics.width = 10;

grphics.height = 10;

I want get the size of grphics is 10*10.

Thank!

Link to comment
Share on other sites

That's an illogical approach, if you can trasnform the container but don't want to transform the children then those children shouldn't be in that container to start with or that container shouldn't be able to transform, one or the other. You need to rethink your approach or probably explain what you are trying to achieve so we can tell you how to do it. 

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